I propose we close this bug. The current dash behavior matches
that of bash. The corresponding bash bug report (288319) was
closed with the changelog entry
- Fixed exit status code so that a suspended job returns 128+signal as its
exit status (preventing commands after it in `&&' lists from being
executed).
That description is consistent with my experiments with both dash
and bash.
There is one other relevant comment in that bash bug log.
Justin Pryzby said
"This is also documented, kind of, in the manpage. Section: BUGS."
If we wanted to send a consistent message to all Debian shell users,
we could add to the dash BUGS section something related to the bash text
"Compound commands and command sequences of the form `a ; b ; c' are
not handled gracefully when process suspension is attempted. When a
process is stopped, the shell immediately executes the next command in
the sequence. It suffices to place the sequence of commands between
parentheses to force it into a subshell, which may be stopped as a unit."
(which could be improved; it's kinda long, and doesn't mention the return
value used in that case)
- Larry
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]