aboutsummaryrefslogtreecommitdiff
path: root/shell/ash_test/ash-parsing/groups_and_keywords2.tests
diff options
context:
space:
mode:
Diffstat (limited to 'shell/ash_test/ash-parsing/groups_and_keywords2.tests')
-rwxr-xr-xshell/ash_test/ash-parsing/groups_and_keywords2.tests9
1 files changed, 9 insertions, 0 deletions
diff --git a/shell/ash_test/ash-parsing/groups_and_keywords2.tests b/shell/ash_test/ash-parsing/groups_and_keywords2.tests
new file mode 100755
index 000000000..ab33b909f
--- /dev/null
+++ b/shell/ash_test/ash-parsing/groups_and_keywords2.tests
@@ -0,0 +1,9 @@
+# This is an error
+(eval 'if() { echo; }')
+echo Fail:$?
+# ^^^^^^ bash prints 1, but interactively it sets $? = 2
+# we print 2
+
+# This is an error, and it aborts in script
+if() { echo; }
+echo Not reached