summaryrefslogtreecommitdiffstats
path: root/tests/errors2.sub
diff options
context:
space:
mode:
Diffstat (limited to 'tests/errors2.sub')
-rw-r--r--tests/errors2.sub3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/errors2.sub b/tests/errors2.sub
new file mode 100644
index 0000000..79ef333
--- /dev/null
+++ b/tests/errors2.sub
@@ -0,0 +1,3 @@
+set -e
+trap 'echo $?' EXIT
+echo ${$NO_SUCH_VAR} # Bad substitution expected here