From ade705cf5b36cdaad29ec7e21796adc3a0854f2c Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Sun, 12 Sep 2010 18:56:40 +0000 Subject: 28253: document -h argument to atribute commands --- Test/C03traps.ztst | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'Test/C03traps.ztst') diff --git a/Test/C03traps.ztst b/Test/C03traps.ztst index 1c4006cc4..321f5e956 100644 --- a/Test/C03traps.ztst +++ b/Test/C03traps.ztst @@ -371,6 +371,23 @@ 0: EXIT trap set in command substitution >command substitution exited + (cd ..; $ZTST_exe -fc 'setopt posixtraps; + TRAPEXIT() { print Exited; } + fn1() { trap; } + setopt localtraps # should be ignored by EXIT + fn2() { TRAPEXIT() { print No, really exited; } } + fn1 + fn2 + fn1') +0:POSIX_TRAPS option +>TRAPEXIT () { +> print Exited +>} +>TRAPEXIT () { +> print No, really exited +>} +>No, really exited + %clean rm -f TRAPEXIT -- cgit 1.4.1