From afee3c9a19264bc30be74afd2338df43c32232ad Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Tue, 9 Oct 2018 11:15:48 +0100 Subject: unposted: addition to previous trap test suggested by Mikael --- Test/C03traps.ztst | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Test') diff --git a/Test/C03traps.ztst b/Test/C03traps.ztst index 3b5d4c610..eab01e5c1 100644 --- a/Test/C03traps.ztst +++ b/Test/C03traps.ztst @@ -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 -- cgit 1.4.1