shell: syncronize ash and hush heredoc1.tests
authorDenys Vlasenko <vda.linux@googlemail.com>
Thu, 6 Jul 2017 16:16:18 +0000 (18:16 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Thu, 6 Jul 2017 16:16:18 +0000 (18:16 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
shell/ash_test/ash-heredoc/heredoc1.right
shell/ash_test/ash-heredoc/heredoc1.tests
shell/ash_test/ash-heredoc/heredoc8.right [new file with mode: 0644]
shell/ash_test/ash-heredoc/heredoc8.tests [new file with mode: 0755]
shell/hush_test/hush-heredoc/heredoc8.right [new file with mode: 0644]
shell/hush_test/hush-heredoc/heredoc8.tests [new file with mode: 0755]

index 40aa5a5fe397caf0499f3e9e7886be1522673952..7fc68f3e1bec8bb95c0804c1988923269e722778 100644 (file)
@@ -1 +1,5 @@
-./heredoc1.tests: line 3: syntax error: unexpected "then"
+qwe
+asd
+123
+456
+Ok
index a912a67c7f3123d9c1ad88d4e3c42bd7ab2ea136..2eeb4726bbd922987d1e4be67d84bbf32aefd839 100755 (executable)
@@ -1,3 +1,9 @@
-# We used to SEGV on this:
-
-<<EOF; then <W
+cat <<000; cat <<www; cat <<eee
+000
+qwe
+asd
+www
+123
+456
+eee
+echo Ok
diff --git a/shell/ash_test/ash-heredoc/heredoc8.right b/shell/ash_test/ash-heredoc/heredoc8.right
new file mode 100644 (file)
index 0000000..af39666
--- /dev/null
@@ -0,0 +1 @@
+./heredoc8.tests: line 3: syntax error: unexpected "then"
diff --git a/shell/ash_test/ash-heredoc/heredoc8.tests b/shell/ash_test/ash-heredoc/heredoc8.tests
new file mode 100755 (executable)
index 0000000..f7bc073
--- /dev/null
@@ -0,0 +1,3 @@
+# ash used to SEGV on this:
+
+<<EOF; then <W
diff --git a/shell/hush_test/hush-heredoc/heredoc8.right b/shell/hush_test/hush-heredoc/heredoc8.right
new file mode 100644 (file)
index 0000000..558858f
--- /dev/null
@@ -0,0 +1 @@
+hush: syntax error at 'then'
diff --git a/shell/hush_test/hush-heredoc/heredoc8.tests b/shell/hush_test/hush-heredoc/heredoc8.tests
new file mode 100755 (executable)
index 0000000..f7bc073
--- /dev/null
@@ -0,0 +1,3 @@
+# ash used to SEGV on this:
+
+<<EOF; then <W