Reputation
1,942
Top tag
Next privilege 2,000 Rep.
Edit questions and answers
Badges
16 33
Impact
~105k people reached

May
9
comment How to disable gzip compression with wget?
This may be useful, but it isn't quite aimed at what I'm actually trying to solve with this question. I'm trying to disable gzip, because it's preventing recursion. This answer doesn't solve that.
Feb
18
comment How to set up a “child” proxy that doesn't need a “parent” proxy
It was a long time ago that I wrote this question, but isn't your suggestion pretty similar to the 2nd-to-last paragraph of my question?
Feb
17
comment How to set up a “child” proxy that doesn't need a “parent” proxy
@Celada: that's an interesting idea, but wouldn't I still need some script to switch between proxy A and proxy B? And if I have a script that somehow detects the availability of the parent proxy and changes child proxies accordingly, is this any easier?
Jan
16
comment Why doesn't the tilde (~) expand inside double quotes?
@cuonglm: that's like telling your kids, when they ask why the sky is blue, that it's blue because the blue wavelengths are hitting their retinas. It's true and gives the immediate reason, but a useful and satisfying reason has to go deeper to give a real reason rather than the immediately preceding cause in a long causal chain. The initial cause in a long chain is more useful than the immediately preceding cause, or at least one further back to give a logical reason than just "because that's the way it works".
Jan
16
comment Expand ~, . and `..`
. is not a directory name, unless you issue mkdir '.'
Jan
16
comment Expand ~, . and `..`
. is not (the name of) a directory either, but ~ refers to your home directory as . refers to the current directory and .. refers to the parent directory.
Jan
16
comment Why doesn't the tilde (~) expand inside double quotes?
The workaround for ~otheruser shows what a bad idea it was to treat ~ differently than variables and other things that are expanded inside double quotes.
Jan
16
comment Why doesn't the tilde (~) expand inside double quotes?
This is very non-intuitive. What is the reason they chose to do this? (This answer doesn't actually give the reason, but rather just points to the standard, but presumably the standard was written that way for a reason.)
Dec
10
comment Why is $COLUMNS not listed by either env or set? (on zsh)
aha: set | grep --text COLUMNS gives it to me. If you post an answer with as much explanation as you can (or as is reasonable, if you could write volumes), I'll accept it.
Dec
10
comment Why is $COLUMNS not listed by either env or set? (on zsh)
zsh --version gives me zsh 5.0.2 (x86_64-apple-darwin13.0). I quadruple checked, but I'm not getting it.
Nov
19
comment how to run multiple versions of one shell on a single machine
Okay... they have parametric aliases, but the syntax is a %!#&$. I'm trying to get one working, in another question.
Nov
19
comment how to run multiple versions of one shell on a single machine
I was just working on a function for csh and tcsh that would add export to it for compatibility with everything else, and discovered that they lack functions. Okay, csh and tcsh may be so prehistoric that it's completely worthless to try to support them. I never encounter them being used and haven't used either myself since about 15 years ago.
Nov
18
comment how to run multiple versions of one shell on a single machine
@glennjackman: If you mean do I have access, then yes. I created these VMs so I have root access. But it's not immediately obvious to me just how I'd implement this.
Nov
18
comment how to run multiple versions of one shell on a single machine
@MarkPlotnick: any path should be okay, as long as it's not horribly difficult to switch between them.
Nov
18
comment Is there an alternative to the `which` command?
I would regard any shell without either test or [...] as unusable for any but the most limited purposes.
Nov
17
comment What is the most portable syntax for `if` statements?
I didn't notice anyone dealing with if test either... but perhaps I just missed it.
Nov
17
comment What is the most portable syntax for `if` statements?
@MichaelDurrant: excellent. After reading muru's answer I realized your question (and maybe mine too) dealt with both issues without specifically delineating them. I thought of commenting to that effect there, but I'm glad you noticed it too and took action first. Thanks!
Nov
17
comment What is the most portable syntax for `if` statements?
Aha: now the syntax actually makes sense... I don't think anyone dealt with if /bin/test as one of the examples in the answers to the other question. Your answer seems to fill in the missing details quite nicely. Thanks!
Nov
17
comment Are there problems with hyphens in functions, aliases, and executables?
Thanks. I tested later in csh and tcsh and they don't support hyphens either, but Korn shell did. It's slightly funny that I used a-b() as my function name as well.
Nov
16
comment Are there problems with hyphens in functions, aliases, and executables?
Useful info: this confirms there's a risk, but is there any known case of a concrete problem?