summaryrefslogtreecommitdiffstats
path: root/tests/errors9.sub
diff options
context:
space:
mode:
Diffstat (limited to 'tests/errors9.sub')
-rw-r--r--tests/errors9.sub14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/errors9.sub b/tests/errors9.sub
new file mode 100644
index 0000000..3a26704
--- /dev/null
+++ b/tests/errors9.sub
@@ -0,0 +1,14 @@
+trap 'echo DEBUG' DEBUG
+
+# make sure that the right command name appears in the error messages and
+# that the DEBUG trap doesn't overwrite it
+
+[[ ++ -gt 3 ]]
+
+(( -- ))
+
+for (( -- ; ++; -- ))
+do
+ echo bogus
+done
+