diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2008-08-05 08:41:22 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2008-08-05 08:41:22 +0000 |
commit | 21d757f50f67653d06c798367e50288d6a95917e (patch) | |
tree | ee9193f18ec8215048c7ed308e1b405916121bbe /Test/C03traps.ztst | |
parent | 541e5e249023ff8cc99192604a92a5a5360f175d (diff) | |
download | zsh-21d757f50f67653d06c798367e50288d6a95917e.tar.gz zsh-21d757f50f67653d06c798367e50288d6a95917e.tar.xz zsh-21d757f50f67653d06c798367e50288d6a95917e.zip |
25392: test for 25367
Diffstat (limited to 'Test/C03traps.ztst')
-rw-r--r-- | Test/C03traps.ztst | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/Test/C03traps.ztst b/Test/C03traps.ztst index a39e1a7d4..92b17ce41 100644 --- a/Test/C03traps.ztst +++ b/Test/C03traps.ztst @@ -350,6 +350,44 @@ >trap >Working 0 + debug-trap-bug1() { + setopt localtraps + print "print bug file here" >bug-file + print "print this is line one + print this is line two + print this is line three + print and this is line fifty-nine." >bug-file2 + function debug_trap_handler { + print $functrace[1] + do_bug + } + function do_bug { + . ./bug-file + } + trap 'echo EXIT hit' EXIT + trap 'debug_trap_handler' DEBUG + . ./bug-file2 + } + debug-trap-bug1 +0: Relationship between traps and sources +>debug-trap-bug1:15 +>bug file here +>this is line one +>./bug-file2:1 +>bug file here +>this is line two +>./bug-file2:2 +>bug file here +>this is line three +>./bug-file2:3 +>bug file here +>and this is line fifty-nine. +>./bug-file2:4 +>bug file here +>debug-trap-bug1:16 +>bug file here +>EXIT hit + %clean rm -f TRAPEXIT |