Re: using `set -e' in a subshell

2005-03-27 Thread Chet Ramey
Jim Meyering wrote: > Hi, > > Is the following behavior intended? > > I was surprised by the behavior of bash/zsh/ash/dash/pdksh, > yet Solaris 5.9's /bin/sh does what I expected: > > # Solaris 5.9's /bin/sh > $ echo a; (set -e; false; echo foo) && echo b > a > > # Yet bash/zsh/ash do t

Re: using `set -e' in a subshell

2005-03-27 Thread Felipe Kellermann
On Sun, 27 Mar 2005 7:43pm +0200, Jim Meyering wrote: > Hi, > > Is the following behavior intended? Hi Jim, Yes. I've seen Chet replying to this subject sometimes here. > # Solaris 5.9's /bin/sh > $ echo a; (set -e; false;