summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoranton <anton@cvs.openbsd.org>2020-05-22 08:45:24 +0000
committeranton <anton@cvs.openbsd.org>2020-05-22 08:45:24 +0000
commit1de4a1bf7dd4f1945cebfa671ed83498c8c8e53f (patch)
tree269fd9f852c0cb41e0c671e79b2839e3db28aa50
parent7ac4d0f11627d3030d857553925905d90b7c4be3 (diff)
Add test covering revision 1.64 of c_sh, fix exit code of compound lists
while using option e.
-rw-r--r--regress/bin/ksh/obsd-regress.t13
1 files changed, 12 insertions, 1 deletions
diff --git a/regress/bin/ksh/obsd-regress.t b/regress/bin/ksh/obsd-regress.t
index d71897cb17e..d94695111cf 100644
--- a/regress/bin/ksh/obsd-regress.t
+++ b/regress/bin/ksh/obsd-regress.t
@@ -1,4 +1,4 @@
-# $OpenBSD: obsd-regress.t,v 1.10 2018/12/08 21:03:51 jca Exp $
+# $OpenBSD: obsd-regress.t,v 1.11 2020/05/22 08:45:23 anton Exp $
#
# ksh regression tests from OpenBSD
@@ -94,6 +94,17 @@ arguments: !-e!
expected-exit: e != 0
---
+name: or-list-error-2
+description:
+ Test exit status of || list in -e mode
+stdin:
+ eval false || true
+ echo "should print"
+expected-stdout:
+ should print
+arguments: !-e!
+---
+
name: var-functions
description:
Calling