aboutsummaryrefslogtreecommitdiff
path: root/shell/ash_test/ash-heredoc
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2015-02-05 21:00:17 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2015-02-05 21:00:17 +0100
commit7e66102f762a7d80715f0c7e5925433256b78cee (patch)
treeab0a28074aa6b4fe2f9dfff6e9db7ab3059caa6b /shell/ash_test/ash-heredoc
parenta14fa79592eadec0d5e296c66e79dfe36ce798c7 (diff)
downloadbusybox-7e66102f762a7d80715f0c7e5925433256b78cee.tar.gz
ash: fix a SEGV case in an invalid heredoc
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/ash_test/ash-heredoc')
-rw-r--r--shell/ash_test/ash-heredoc/heredoc1.right1
-rwxr-xr-xshell/ash_test/ash-heredoc/heredoc1.tests3
2 files changed, 4 insertions, 0 deletions
diff --git a/shell/ash_test/ash-heredoc/heredoc1.right b/shell/ash_test/ash-heredoc/heredoc1.right
new file mode 100644
index 000000000..895f5ee80
--- /dev/null
+++ b/shell/ash_test/ash-heredoc/heredoc1.right
@@ -0,0 +1 @@
+heredoc1.tests: line 3: syntax error: unexpected "then"
diff --git a/shell/ash_test/ash-heredoc/heredoc1.tests b/shell/ash_test/ash-heredoc/heredoc1.tests
new file mode 100755
index 000000000..a912a67c7
--- /dev/null
+++ b/shell/ash_test/ash-heredoc/heredoc1.tests
@@ -0,0 +1,3 @@
+# We used to SEGV on this:
+
+<<EOF; then <W