[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CVS: cvs.openbsd.org: src
- To: source-changes_(_at_)_cvs_(_dot_)_openbsd_(_dot_)_org
- Subject: CVS: cvs.openbsd.org: src
- From: Jared Yanovich <jaredy_(_at_)_cvs_(_dot_)_openbsd_(_dot_)_org>
- Date: Thu, 29 Jan 2009 16:27:26 -0700 (MST)
Module name: src
Changes by: jaredy_(_at_)_cvs_(_dot_)_openbsd_(_dot_)_org 2009/01/29 16:27:26
bin/ksh : c_sh.c eval.c exec.c jobs.c ksh.1 main.c
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
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.