Re: set -e is not clearly documented

2013-10-10 Thread Dan Douglas
On Monday, October 07, 2013 10:21:06 AM Chet Ramey wrote: > The subshell command is clearly part of the || compound command. The > subshell `knows' that it is part of || and set -e has no effect. This > example has been discussed before, on this list and the austin-group > Posix list, and the bas

Re: set -e is not clearly documented

2013-10-07 Thread Chet Ramey
On 10/7/13 5:01 AM, Bartłomiej Palmowski wrote: > Hi, > > lets consider the following: > > $ echo $BASH_VERSION > 4.1.2(1)-release > $ cat /etc/system-release > Red Hat Enterprise Linux Server release 6.3 (Santiago) > $ ( set -e; echo foo; false; echo bar; ) # this one is expected > foo > $ ( set

Re: set -e is not clearly documented

2013-10-07 Thread Greg Wooledge
On Mon, Oct 07, 2013 at 11:01:11AM +0200, Bart?omiej Palmowski wrote: > $ ( set -e; echo foo; false; echo bar; ) # this one is expected > foo > $ ( set -e; echo foo; false; echo bar; ) || true # this one is not expected > foo > bar set -e is useless rubbish that should be avoided. See http://mywik