diff options
author | Peter Stephenson <p.stephenson@samsung.com> | 2018-10-09 14:38:26 +0100 |
---|---|---|
committer | Peter Stephenson <p.stephenson@samsung.com> | 2018-10-09 14:38:26 +0100 |
commit | bbccbe0c85887bfc15c57a0c5eb97e59f7cb9fa7 (patch) | |
tree | 01eda28efd0a0b7eff0da5b69697da61b6d0011f /Test | |
parent | 9ede8c657f498c584d89a8d8ff3b24104711c88c (diff) | |
download | zsh-bbccbe0c85887bfc15c57a0c5eb97e59f7cb9fa7.tar.gz zsh-bbccbe0c85887bfc15c57a0c5eb97e59f7cb9fa7.tar.xz zsh-bbccbe0c85887bfc15c57a0c5eb97e59f7cb9fa7.zip |
43660: extend 43653 when final exit is implicit.
Combine logic for case after committed to exit (shell_exiting) with case where exit occurred in a function we nee to unwind (exit_pending). Add sarky note for future generations to be confused at.
Diffstat (limited to 'Test')
-rw-r--r-- | Test/C03traps.ztst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Test/C03traps.ztst b/Test/C03traps.ztst index eab01e5c1..bab0b0a0c 100644 --- a/Test/C03traps.ztst +++ b/Test/C03traps.ztst @@ -869,6 +869,10 @@ F:Must be tested with a top-level script rather than source or function $ZTST_testdir/../Src/zsh -fc 'fn() { exit $?+8; }; trap fn EXIT; exit 7' 15:Progated exit status through exit trap + $ZTST_testdir/../Src/zsh -fc 'fn() { exit 13; }; trap fn EXIT' +13:Explicit exit in exit trap overrides implicit exit status + %clean rm -f TRAPEXIT + |