diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2000-04-30 14:48:49 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2000-04-30 14:48:49 +0000 |
commit | 563936ba27c92750e0f752ad9137366506352f09 (patch) | |
tree | 21945b324a8cac71f2a1fda1f575a24fe81be770 /Test/08traps.ztst | |
parent | 5c327339f5b6973a9355d3edc564def697b7cbdd (diff) | |
download | zsh-563936ba27c92750e0f752ad9137366506352f09.tar.gz zsh-563936ba27c92750e0f752ad9137366506352f09.tar.xz zsh-563936ba27c92750e0f752ad9137366506352f09.zip |
11026: fix for unfunction of trap with localtraps bug
Diffstat (limited to 'Test/08traps.ztst')
-rw-r--r-- | Test/08traps.ztst | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Test/08traps.ztst b/Test/08traps.ztst index 10eb48ba9..5ede57fdb 100644 --- a/Test/08traps.ztst +++ b/Test/08traps.ztst @@ -126,3 +126,25 @@ sleep 2 0: Nested `trap ... TERM', triggered on outer loop >TERM1 + + TRAPZERR() { print error activated; } + fn() { print start of fn; false; print end of fn; } + fn + fn() { + setopt localoptions localtraps + unfunction TRAPZERR + print start of fn + false + print end of fn + } + fn + unfunction TRAPZERR + print finish +0: basic localtraps handling +>start of fn +>error activated +>end of fn +>start of fn +>end of fn +>finish + |