1,850 reputation
1332
bio website
location
age
visits member for 4 years
seen Dec 22 at 16:58

Jul
16
comment Why does passing a HEREDOC as a string to `ruby -e` not work?
You provided the key insight (and answered first!) and it was fairly obvious to me after reading your answer that I could add double quotes around the the $() expression, but it might not be so obvious to everyone who reads this later, so I'm torn on which answer to accept.
Jul
16
comment Why does passing a HEREDOC as a string to `ruby -e` not work?
Initially I thought this was flawed because I wouldn't be able to use double quotes inside the code, but then realized that even though the HEREDOC is a stream rather than a string (as Kaz points out) it will still hide any internal double quotes from the shell interpreter.
Jul
16
asked Why does passing a HEREDOC as a string to `ruby -e` not work?
Jul
13
awarded  Popular Question
Jul
8
comment How do I get rid of Cygwin's /cygdrive prefix in all paths?
I didn't know there was a way to get the windows drives at /. Did you have that before? (Or at /cygdrive/?) I've always just lived with the fact that I have to know which Windows drives are available, and I hardly ever use them anyway.
Jul
3
revised Strip color on OS X with BSD sed (or any other tool)
added 2 characters in body
Jul
2
comment Strip color on OS X with BSD sed (or any other tool)
The bash version worked without any adjustment needed: you deserve more upvotes than all the people on commandlinefu.com!
Jul
2
accepted Strip color on OS X with BSD sed (or any other tool)
Jul
2
revised Strip color on OS X with BSD sed (or any other tool)
added 3 characters in body
Jul
2
awarded  Curious
Jul
1
asked Strip color on OS X with BSD sed (or any other tool)
Jun
30
accepted How to make a variable from a subshell available in the parent shell
Jun
30
revised How to make a variable from a subshell available in the parent shell
fix error
Jun
30
asked How to make a variable from a subshell available in the parent shell
Jun
23
comment What is the correct form of the HostnameSuffixes SSH keyword?
Wouldn't the sort of thing you're doing in your examples be accomplished as well with Host leguin williams\n HostName %h.gilles.name\n UserName gilles?
Jun
23
accepted What is the correct form of the HostnameSuffixes SSH keyword?
Jun
23
comment What is the correct form of the HostnameSuffixes SSH keyword?
Okay, I missed that mention of it... I guess that's fairly clear there that it's a new option. Thanks!
Jun
23
comment What is the correct form of the HostnameSuffixes SSH keyword?
Yes, but the change initially proposed was not HostnameSuffixes, so it appeared to me that that was an existing keyword. Apparently, if I understand you correctly, you're saying that HostnameSuffixes was being implicitly also proposed as another change, but never explicitly mentioned as such?
Jun
22
revised What is the correct form of the HostnameSuffixes SSH keyword?
added 96 characters in body
Jun
22
revised What is the correct name for the “>” command
clarifying: > might "add" to an existing file, but it would first clobber the existing contents; "append" makes the situation crystal clear