[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CVS: cvs.openbsd.org: src



CVSROOT:	/cvs
Module name:	src
Changes by:	jaredy_(_at_)_cvs_(_dot_)_openbsd_(_dot_)_org	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.



Visit your host, monkey.org