Re: [PATCH] [EVAL] with set -e exit the shell if a subshell exits non-zero

2010-07-06 Thread Herbert Xu
On Mon, Jun 14, 2010 at 09:56:03AM +, Gerrit Pape wrote: Example: $ dash -c 'set -e; (false); echo here' here With this commit, dash exits 1 before echo. The bug was reported by Stefan Fritsch through http://bugs.debian.org/514863 Signed-off-by: Gerrit Pape p...@smarden.org

Re: [PATCH] [EVAL] with set -e exit the shell if a subshell exits non-zero

2010-06-28 Thread Cristian Ionescu-Idbohrn
On Mon, 28 Jun 2010, Herbert Xu wrote: On Mon, Jun 14, 2010 at 09:56:03AM +, Gerrit Pape wrote: Example: $ dash -c 'set -e; (false); echo here' here With this commit, dash exits 1 before echo. The bug was reported by Stefan Fritsch through http://bugs.debian.org/514863

Re: [PATCH] [EVAL] with set -e exit the shell if a subshell exits non-zero

2010-06-28 Thread Eric Blake
On 06/28/2010 01:22 AM, Cristian Ionescu-Idbohrn wrote: Has bash's behaviour changed recently (I'm using an ancient version)? Yes - bash 4.1 tries harder to be compliant with the recent Austin Group interpretations (and more like ksh). bash 3.2.39 and 4.0.37 are behaving as dash without the