aboutsummaryrefslogtreecommitdiff
path: root/shell/ash_test/ash-parsing/groups_and_keywords1.tests
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2017-07-24 02:49:56 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2017-07-24 02:49:56 +0200
commite34dbc4fdcae6e21bb186c225f76d399d2656d75 (patch)
treeddca2d6cb7209bd34e6775c26e211e0c6f49d0e7 /shell/ash_test/ash-parsing/groups_and_keywords1.tests
parent0675b03de44b75f5f5fc7a54c164628e9ee01e9c (diff)
downloadbusybox-e34dbc4fdcae6e21bb186c225f76d399d2656d75.tar.gz
ash: add all hush parsing tests to ast tests
All pass. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
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:$?