> # non-interactive shell
> $ dash -c 'dash; read arg'
> dash$ exit
> [1]  + 683 suspended (tty input)  dash -c 'dash; read arg'
> $ kill %1
> [1]  + 820 terminated  dash -c 'dash; read arg'
> $
> 
> # interactive shell
> $ dash -i -c 'dash; read arg'
> dash$ exit
> read this!
> $

adding the '-m' option produces the same behavior as running it
interactively; it seems to be due to the fact that job control is off by
default for non-interactive invocations.

Job control is now mandatory in POSIX... perhaps it should be enabled by
default?

-- 
Micah J. Cowan
Programmer, musician, typesetting enthusiast, gamer...
http://micah.cowan.name/




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to