On Mon, Jun 14, 2010 at 09:56:38AM +0000, Gerrit Pape wrote: > According to > http://www.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html#tag_02_12 > "A subshell environment shall be created as a duplicate of the shell > environment, except that signal traps set by that shell environment > shall be set to the default values." > > Currently the eflag is cleared when forking a subshell, e.g. > > $ dash -c 'set -e ; z=$(false;echo foo) ; echo $z' > foo > > With this commit the eflag is preserved for subshells, and dash exits 1 > before echo. > > The problem was reported by Vincent Lefevre through > http://bugs.debian.org/514863 > > Signed-off-by: Gerrit Pape <pape@xxxxxxxxxxx> Patch applied. Thanks Gerrit! -- Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- To unsubscribe from this list: send the line "unsubscribe dash" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html