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 Applied

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

2010-07-05 Thread Herbert Xu
Eric Blake wrote: > [-- text/plain, encoding quoted-printable, charset: ISO-8859-1, 62 lines --] > > 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 rece

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 withou

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.deb

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

2010-06-28 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 I'm not

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

2010-06-14 Thread Gerrit Pape
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 --- src/eval.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/sr