aboutsummaryrefslogtreecommitdiff
path: root/shell/ash_test/ash-parsing/groups_and_keywords1.tests
diff options
context:
space:
mode:
Diffstat (limited to 'shell/ash_test/ash-parsing/groups_and_keywords1.tests')
-rwxr-xr-xshell/ash_test/ash-parsing/groups_and_keywords1.tests10
1 files changed, 10 insertions, 0 deletions
diff --git a/shell/ash_test/ash-parsing/groups_and_keywords1.tests b/shell/ash_test/ash-parsing/groups_and_keywords1.tests
new file mode 100755
index 000000000..01944d714
--- /dev/null
+++ b/shell/ash_test/ash-parsing/groups_and_keywords1.tests
@@ -0,0 +1,10 @@
+echo "Semicolons after } can be omitted 1:"
+if { echo foo; } then { echo bar; } fi
+
+echo "Semicolons after } can be omitted 2:"
+while { echo foo; } do { echo bar; break; } done
+
+echo "Semicolons after fi can be omitted:"
+while if echo foo; then echo bar; fi do echo baz; break; done
+
+echo Done:$?