1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-09-28 15:01:21 +02:00

unposted: addition to previous trap test suggested by Mikael

This commit is contained in:
Peter Stephenson 2018-10-09 11:15:48 +01:00
parent d768a7492a
commit afee3c9a19
2 changed files with 6 additions and 0 deletions

@ -1,5 +1,8 @@
2018-10-09 Peter Stephenson <p.stephenson@samsung.com>
* unposted: Test/C03traps.ztst: addition to previous test
suggested by Mikael.
* 43653: Src/builtin.c, Test/C03traps.ztst: explicit exit from
EXIT trap overrides previous status.

@ -866,6 +866,9 @@ F:Must be tested with a top-level script rather than source or function
$ZTST_testdir/../Src/zsh -fc 'fn() { exit 13; }; trap fn EXIT; exit'
13:Explicit exit in exit trap overrides status
$ZTST_testdir/../Src/zsh -fc 'fn() { exit $?+8; }; trap fn EXIT; exit 7'
15:Progated exit status through exit trap
%clean
rm -f TRAPEXIT