summaryrefslogtreecommitdiff
path: root/regress/bin
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2013-06-08 21:36:51 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2013-06-08 21:36:51 +0000
commitff11d3867468575fa182403699dba5ba440d338c (patch)
tree0001e3830ecf6832b4dd0a93938501529edf2f73 /regress/bin
parent41a55873d47f9036578b951acc755a77be819dc0 (diff)
POSIX specifies that for an AND/OR list, only the last command's
exit status matters for "set -e". OK espie@
Diffstat (limited to 'regress/bin')
-rw-r--r--regress/bin/ksh/seterror.sh6
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