1,000 reputation
415
bio website
location
age
visits member for 2 years, 4 months
seen Jan 24 at 21:47

Jan
24
comment linux setuid does not work
I believe it's not so much that /bin/sh doesn't have the suid bit set as it is that the shell explicitly sets its UID back to the caller's real UID.
Jan
23
reviewed No Action Needed / readonly on boot, but don't see why. how to investigate and fix?
Jan
23
reviewed No Action Needed How to execute 'clear' bash command before any other command is executed?
Jan
23
reviewed No Action Needed What does etc stand for?
Jan
22
answered runtime errors, where do they come from?
Jan
22
comment how to replace a character within in a multiple double quoted words within a line using sed?
This assumes that each quoted string contains exactly one comma. It fails on 012345,"[ThinkPadT2/3Gband-Mac]",Lenovo,"iPhone3G,A1241" and 012345,"[ThinkPadT2,3Gband,Mac]",Lenovo,"iPhone3G,A1241".
Jan
22
reviewed No Action Needed USB Media filesystem problem
Jan
16
revised Why does 'find -exec cmd {} +' need to end in '{} +'?
Improved formatting (and punctuation); added "history" tag.
Jan
16
comment Compatibility scripting: Save $? for use later
Well, if that's a valid answer, why not sh -c '_EXIT=$?; <<other code here>>; (exit $_EXIT)'?
Jan
16
comment Compatibility scripting: Save $? for use later
@OleTange: My point was that, by including the "other code" in the parentheses, you are preventing it from having an effect on the main shell process.
Jan
16
suggested approved edit on Why does 'find -exec cmd {} +' need to end in '{} +'?
Jan
16
comment Compatibility scripting: Save $? for use later
I'm not crystal clear on what the goal is. As a general construct, you might be better with _EXIT=$?; <<other code here>>; (exit $_EXIT), to allow the "other code" to modify the state of the shell (e.g., cd, set variables, etc.)
Jan
15
answered What does “wd” mean?
Jan
13
answered Is it safe to type another command into STDIN while the previous command is writing to STDOUT?
Jan
13
comment Why recursive grep does not work with STDOUT?
Exactly what is the behavior you want? I don't understand how you want grep to read its output.
Jan
13
answered How does one inspect the directory structure information of a unix/linux file?
Jan
12
answered using tee to output intermediate results to stdout instead of files
Jan
12
awarded  Civic Duty
Jan
12
comment How to combine & and &&?
(1) Absolutely! I copied the code from the question's first code block, pasted it into my answer, deleted the newlines, and added the semicolon after the sleep 2. (2) I disagree that my claim is disingenuous. AFAICT, the OP doesn't understand that cmd1 & and cmd2 (separate lines) can be combined into cmd1 & cmd2 without adding any intervening punctuation, such as ;, and that that is exactly what the question is asking. Maybe I misunderstand the question, but I'm not trying to pull a fast one.
Jan
11
comment How to combine & and &&?
@muru: Where? I see & && in the question where my answer has only &. (Also, the question says "I have cmd1 & (newline) cmd2 and I want to make it a one-liner.)