diff options
Diffstat (limited to 'tests/trap6.sub')
-rw-r--r-- | tests/trap6.sub | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/trap6.sub b/tests/trap6.sub new file mode 100644 index 0000000..332a177 --- /dev/null +++ b/tests/trap6.sub @@ -0,0 +1,15 @@ +set -o functrace +fn() { return; } + +trap "echo fn ; fn" RETURN + +fn +echo after 1 + +unset -f fn + +fn() { eval return; } +fn +echo after 2 + +unset -f fn |