1,806 reputation
1230
bio website
location
age
visits member for 3 years, 11 months
seen Nov 19 at 21:11

Aug
1
accepted Succinct way to respond to user input?
Aug
1
suggested suggested edit on Succinct way to respond to user input?
Aug
1
comment Succinct way to respond to user input?
Yes: if I change the name of the function to something like user_input then the resulting code reads quite nicely.
Aug
1
asked Succinct way to respond to user input?
Aug
1
revised Copy files from remote server to local, ignoring existing files (rsync not available)
fixed grammar ("with ignoring"???) and clarified question ("ignoring existing files on the destination server" is misleading when it's actually files that exist ***locally*** that he wants to ignore on the server)
Aug
1
suggested suggested edit on Copy files from remote server to local, ignoring existing files (rsync not available)
Aug
1
comment How to execute a remote command and pass in local file as input?
Okay, I thought you were taking this approach instead of < since you thought writing was required (as was implied by the original title) but you were simply offering another way of doing it (which just happens to allow writing as a side effect).
Aug
1
comment How to execute a remote command and pass in local file as input?
Okay, I must have misunderstood your answer. I didn't try it, but inferred that since you were establishing a reverse tunnel (from remote to local host?) you were allowing the local file to be modified by the remote machine. Is that not the case?
Aug
1
awarded  Notable Question
Aug
1
revised How to execute a remote command and pass in local file as input?
OP simply wants the local file to be input, therefore is not acting *on* (that is, modifying) the local file. The previous title implied acting on (modifying) the file locally.
Aug
1
comment How to execute a remote command and pass in local file as input?
@Gilles: I think the original title was misleading, and you understood his question based on the misleading title. As far as I can tell, thought, he didn't actually want to act on the local file, but just pass it in as input. (But your answer is amazing, if I understand it correctly! Maybe I should ask the question you answered, just to give you a place to put the answer where you'll get proper credit for it.) I've edited the questions title to make it consistent with the body and with the chosen answer.
Aug
1
suggested suggested edit on How to execute a remote command and pass in local file as input?
Aug
1
accepted Variable assignment outside of case statement
Jul
31
comment Variable assignment outside of case statement
One page I checked (I don't recall where it was) listed the opening ( as optional. I thought it might help avoid letting the ) be misinterpreted as the closing ) for the $(...) expression.
Jul
31
asked Variable assignment outside of case statement
Jul
25
awarded  Notable Question
Jul
24
accepted How can I suppress the space between generated arguments during brace expansion?
Jul
24
comment How can I suppress the space between generated arguments during brace expansion?
It's a hard call, but I'm choosing this answer because (1) it seems (AFAIK) to be the closest to the stated goal of suppressing rather than merely removing the spaces, and (2) I learned the most from it (a stated goal of my question).
Jul
24
comment How can I suppress the space between generated arguments during brace expansion?
I think this is the simplest and most practical approach
Jul
24
comment How can I suppress the space between generated arguments during brace expansion?
Wouldn't richard's answer be equally compatible? (It also has the advantage of being simpler, therefore I don't have to stop and think about the fiddly bits the next time I want to use it.) On the other hand, Gnouc's answer is also excellent. And I think I learned the most from glenn jackson's answer. Leiaz's answer seems simplest and most elegant, but of course is zsh-only.