Date: Sat, 10 Sep 2005 08:25:28 +0000 (UTC) From: Stefan Farfeleder <stefanf@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/bin/sh eval.c Message-ID: <200509100825.j8A8PSVi013725@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
stefanf 2005-09-10 08:25:28 UTC
FreeBSD src repository
Modified files:
bin/sh eval.c
Log:
Pass the EV_TESTED flag to evalloop() and evalfor(). This fixes unwanted
termination with set -e if a command fails in a loop body inside a function
with an explicitely tested exit status, eg
f() {
for i in 1 2 3; do
false
done
}
f || true
Briefly reviewed by: cracauer
Revision Changes Path
1.46 +8 -8 src/bin/sh/eval.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200509100825.j8A8PSVi013725>
