From bb929517a86092481ed8547e9f247c1b58bc4745 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Thu, 16 Apr 2009 10:59:40 +0000 Subject: hush: fix "if { echo foo; } then { echo bar; } fi" parsing function old new delta done_word 728 793 +65 parse_stream 2084 2098 +14 --- shell/hush_test/hush-parsing/groups_and_keywords1.tests | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 shell/hush_test/hush-parsing/groups_and_keywords1.tests (limited to 'shell/hush_test/hush-parsing/groups_and_keywords1.tests') diff --git a/shell/hush_test/hush-parsing/groups_and_keywords1.tests b/shell/hush_test/hush-parsing/groups_and_keywords1.tests new file mode 100755 index 000000000..01944d714 --- /dev/null +++ b/shell/hush_test/hush-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:$? -- cgit v1.2.3