diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2015-02-05 21:00:17 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2015-02-05 21:00:17 +0100 |
commit | 7e66102f762a7d80715f0c7e5925433256b78cee (patch) | |
tree | ab0a28074aa6b4fe2f9dfff6e9db7ab3059caa6b /shell/ash_test | |
parent | a14fa79592eadec0d5e296c66e79dfe36ce798c7 (diff) |
ash: fix a SEGV case in an invalid heredoc
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/ash_test')
-rw-r--r-- | shell/ash_test/ash-heredoc/heredoc1.right | 1 | ||||
-rwxr-xr-x | shell/ash_test/ash-heredoc/heredoc1.tests | 3 |
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 |