Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-./heredoc1.tests: line 3: syntax error: unexpected "then"
+qwe
+asd
+123
+456
+Ok
-# We used to SEGV on this:
-
-<<EOF; then <W
+cat <<000; cat <<www; cat <<eee
+000
+qwe
+asd
+www
+123
+456
+eee
+echo Ok
--- /dev/null
+./heredoc8.tests: line 3: syntax error: unexpected "then"
--- /dev/null
+# ash used to SEGV on this:
+
+<<EOF; then <W
--- /dev/null
+hush: syntax error at 'then'
--- /dev/null
+# ash used to SEGV on this:
+
+<<EOF; then <W