CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]  2009/01/29 16:27:26

Modified files:
        bin/ksh        : c_sh.c eval.c exec.c jobs.c ksh.1 main.c 
                         proto.h sh.1 
        regress/bin/ksh: seterror.sh 

Log message:
pass "xerrok" status across the execution call stack to more closely
match what both POSIX and ksh.1 already describe in regards to set
-e/errexit's behavior in determining when to exit from nonzero return
values.

specifically, the truth values tested as operands to `&&' and `||', as
well as the resulting compound expression itself, along with the truth
value resulting from a negated command (i.e. a pipeline prefixed `!'),
should not make the shell exit when -e is in effect.

issue reported by matthieu.
testing matthieu, naddy.
ok miod (earlier version), otto.
man page ok jmc.

Reply via email to