diff options
author | anton <anton@openbsd.org> | 2020-05-22 08:45:23 +0000 |
---|---|---|
committer | anton <anton@openbsd.org> | 2020-05-22 08:45:23 +0000 |
commit | 206b3d4c5f41960ef7ab2fd440d924662cca7378 (patch) | |
tree | 8bd0eaf6392c02988e759dba02aa156673aebd6a /regress | |
parent | Fix the exit code when eval()uating a || compound list, it would (diff) | |
download | wireguard-openbsd-206b3d4c5f41960ef7ab2fd440d924662cca7378.tar.xz wireguard-openbsd-206b3d4c5f41960ef7ab2fd440d924662cca7378.zip |
Add test covering revision 1.64 of c_sh, fix exit code of compound lists
while using option e.
Diffstat (limited to 'regress')
-rw-r--r-- | regress/bin/ksh/obsd-regress.t | 13 |
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 |