mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-29 05:21:00 +01:00
unposted: addition to previous trap test suggested by Mikael
This commit is contained in:
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>
|
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
|
* 43653: Src/builtin.c, Test/C03traps.ztst: explicit exit from
|
||||||
EXIT trap overrides previous status.
|
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'
|
$ZTST_testdir/../Src/zsh -fc 'fn() { exit 13; }; trap fn EXIT; exit'
|
||||||
13:Explicit exit in exit trap overrides status
|
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
|
%clean
|
||||||
|
|
||||||
rm -f TRAPEXIT
|
rm -f TRAPEXIT
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue