summaryrefslogtreecommitdiff
path: root/Test/C05debug.ztst
diff options
context:
space:
mode:
Diffstat (limited to 'Test/C05debug.ztst')
-rw-r--r--Test/C05debug.ztst10
1 files changed, 10 insertions, 0 deletions
diff --git a/Test/C05debug.ztst b/Test/C05debug.ztst
index 6594eb8a1..b5515c90c 100644
--- a/Test/C05debug.ztst
+++ b/Test/C05debug.ztst
@@ -137,3 +137,13 @@
>9: 'fn2'
>0: 'echo wow'
>wow
+
+ foo() {
+ emulate -L zsh; setopt debugbeforecmd
+ trap '[[ $ZSH_DEBUG_CMD == *bar* ]] && return 2' DEBUG
+ echo foo
+ echo bar
+ }
+ foo
+2:Status of forced return from eval-style DEBUG trap
+>foo