diff options
author | Peter Stephenson <p.stephenson@samsung.com> | 2018-10-09 10:05:05 +0100 |
---|---|---|
committer | Peter Stephenson <p.stephenson@samsung.com> | 2018-10-09 10:05:05 +0100 |
commit | d768a7492a850e8d1ccb00f2cc8eef0bd238b7ab (patch) | |
tree | 27a59d6605abdb9d32a2dd31c26fd147b181085d /Test | |
parent | 00baf08602705f1edc13266c24ecf2df5241143b (diff) | |
download | zsh-d768a7492a850e8d1ccb00f2cc8eef0bd238b7ab.tar.gz zsh-d768a7492a850e8d1ccb00f2cc8eef0bd238b7ab.tar.xz zsh-d768a7492a850e8d1ccb00f2cc8eef0bd238b7ab.zip |
43653: explicit exit from EXIT trap overrides exit status
Diffstat (limited to 'Test')
-rw-r--r-- | Test/C03traps.ztst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Test/C03traps.ztst b/Test/C03traps.ztst index dce263f94..3b5d4c610 100644 --- a/Test/C03traps.ztst +++ b/Test/C03traps.ztst @@ -863,6 +863,9 @@ F:Must be tested with a top-level script rather than source or function >a >b + $ZTST_testdir/../Src/zsh -fc 'fn() { exit 13; }; trap fn EXIT; exit' +13:Explicit exit in exit trap overrides status + %clean rm -f TRAPEXIT |