diff options
author | 2013-06-08 21:36:50 +0000 | |
---|---|---|
committer | 2013-06-08 21:36:50 +0000 | |
commit | d73392faed85e3ab5cd25c2df5045fbb8a3c3fa3 (patch) | |
tree | a2a622dd62beaf85fd6f2340ec31e474745db9ae | |
parent | Add CTASSERT macro, for compile time assertions (diff) | |
download | wireguard-openbsd-d73392faed85e3ab5cd25c2df5045fbb8a3c3fa3.tar.xz wireguard-openbsd-d73392faed85e3ab5cd25c2df5045fbb8a3c3fa3.zip |
POSIX specifies that for an AND/OR list, only the last command's
exit status matters for "set -e". OK espie@
-rw-r--r-- | regress/bin/ksh/seterror.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/regress/bin/ksh/seterror.sh b/regress/bin/ksh/seterror.sh index f3753249ca2..cd47e6da652 100644 --- a/regress/bin/ksh/seterror.sh +++ b/regress/bin/ksh/seterror.sh @@ -1,5 +1,5 @@ #! /bin/sh -# $OpenBSD: seterror.sh,v 1.2 2009/01/29 23:27:26 jaredy Exp $ +# $OpenBSD: seterror.sh,v 1.3 2013/06/08 21:36:50 millert Exp $ # set -e is supposed to abort the script for errors that are not caught # otherwise. @@ -11,8 +11,8 @@ if true; then if true; then false && false; fi; fi for i in 1 2 3 do - true && false - false || false + false && true + true || false done ! true | false |