From 17e576782c4fd64194d4908af5b9774308f1205f Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Mon, 26 Jul 2004 13:18:07 +0000 Subject: 20198: fix TRAPEXIT. --- Test/C03traps.ztst | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Test/C03traps.ztst') diff --git a/Test/C03traps.ztst b/Test/C03traps.ztst index 26ba73da5..3ef399efd 100644 --- a/Test/C03traps.ztst +++ b/Test/C03traps.ztst @@ -57,6 +57,13 @@ >Function 1 going >Function 2 going +# $ZTST_exe is relative to the parent directory. +# We ought to fix this in ztst.zsh... + cd .. + $ZTST_exe -fc 'TRAPEXIT() { print Exited.; }' +0:EXIT traps on a script +>Exited. + fn1() { trap trap 'print INT1' INT -- cgit 1.4.1