From 7e66102f762a7d80715f0c7e5925433256b78cee Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Thu, 5 Feb 2015 21:00:17 +0100 Subject: ash: fix a SEGV case in an invalid heredoc Signed-off-by: Denys Vlasenko --- shell/ash_test/ash-heredoc/heredoc1.right | 1 + shell/ash_test/ash-heredoc/heredoc1.tests | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 shell/ash_test/ash-heredoc/heredoc1.right create mode 100755 shell/ash_test/ash-heredoc/heredoc1.tests (limited to 'shell/ash_test/ash-heredoc') 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: + +<