diff options
author | stefanf <stefanf@FreeBSD.org> | 2005-09-10 08:25:28 +0000 |
---|---|---|
committer | stefanf <stefanf@FreeBSD.org> | 2005-09-10 08:25:28 +0000 |
commit | c39c1e0d62641cb10c7b66e507332eed6e8a4c4f (patch) | |
tree | 76e64b8e41106f603407c4d3d4e85bd4c27b7cc1 /games | |
parent | 2485a74343577b25f8e4fdb207039372ba58d9fa (diff) | |
download | FreeBSD-src-c39c1e0d62641cb10c7b66e507332eed6e8a4c4f.zip FreeBSD-src-c39c1e0d62641cb10c7b66e507332eed6e8a4c4f.tar.gz |
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
Diffstat (limited to 'games')
0 files changed, 0 insertions, 0 deletions