Re: "jobs" builtin: print zero exit status

2013-09-14 Thread Dmitry Bolshakov
"wait" blocks, "jobs" - does not -- with best regards Dmitry Bolshakov 12.09.2013, 22:34, "Chet Ramey" : > On 9/12/13 6:14 AM, Dmitry Bolshakov wrote: > >> Hi! >> imho "jobs" should either print zero exit status or it shou

"jobs" builtin: print zero exit status

2013-09-12 Thread Dmitry Bolshakov
erl -e "sleep 1; exit 123" ok, I see exit status but $ bash -c 'set -m; perl -e "sleep 1; exit 0"& { sleep 3; jobs -l; }' [1]+е║ Doneе║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║ perl -e "sleep 1; exit 0" imho "Exit 0" would be better for scripting -- with best regards Dmitry Bolshakov

feature request: option to start script not from the very beginning of file

2011-08-02 Thread Dmitry Bolshakov
hi perl has "-x" switch which makes it skip leading file contents until the #!/bin/perl line imho it would be good to have the same feature in bash -- With best regards Dmitry Bolshakov

exit-on-error (set -e) option and command after "if" not found

2011-06-22 Thread Dmitry Bolshakov
Hi set -e if nosuchcommand | grep blabla then echo ERROR: blabla was found exit 1 fi echo it was unexpected for me, I thougt this line should not be echoed (bash 4.1.10(4)-release) -- With best regards Dmitry Bolshakov