1,848 reputation
1331
bio website
location
age
visits member for 3 years, 11 months
seen 20 hours ago

Nov
18
asked how to run multiple versions of one shell on a single machine
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
accepted What is the most portable syntax for `if` statements?
Nov
17
asked What is the most portable syntax for `if` statements?
Nov
17
revised What makes an operating system “Unix-Like”?
The Internet is a network of networks. What the author really meant was that he found it on the web, not the internet.
Nov
17
suggested approved edit on What makes an operating system “Unix-Like”?
Nov
17
accepted Are there problems with hyphens in functions, aliases, and executables?
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?
Nov
16
asked Are there problems with hyphens in functions, aliases, and executables?
Oct
22
awarded  Notable Question
Oct
17
revised How to transpose command line arguments with emacs keybindings?
fixed formatting of keys
Oct
17
suggested approved edit on How to transpose command line arguments with emacs keybindings?
Oct
17
accepted How to transpose command line arguments with emacs keybindings?
Oct
17
comment How to transpose command line arguments with emacs keybindings?
Your simple approach seems to work, except that I think you meant control (or Ctrl on Windows keyboards) rather than Alt.
Oct
17
comment How to transpose command line arguments with emacs keybindings?
Thanks, but if I can't have a command that handles whole arguments, then it'll actually be a lot more complicated than that. I updated the examples to be closer to real life, with punctuation.
Oct
17
comment How to transpose command line arguments with emacs keybindings?
Thanks, but if I can't have a command that handles whole arguments, then it'll actually be a lot more complicated than that. I updated the examples to be closer to real life, with punctuation.