aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMu Qiao <qiaomuf@gentoo.org>2011-06-13 18:43:25 +0800
committerPetteri Räty <petsku@petteriraty.eu>2011-06-14 15:57:33 +0300
commit98598d7ccf5e412a61e02dcca488bc109324d41b (patch)
treec80d006dedc279097a31cadb8923ffdf55f6183c /test/verify_error_output_test.sh
parentParser: fix bracket pattern match negation (diff)
downloadlibbash-98598d7ccf5e412a61e02dcca488bc109324d41b.tar.gz
libbash-98598d7ccf5e412a61e02dcca488bc109324d41b.tar.bz2
libbash-98598d7ccf5e412a61e02dcca488bc109324d41b.zip
Parser: Support redirection for all kinds of commands
Bash allows redirection to appear after any kind of command including compound command. Now the parser grammar is changed to reflect this. Note that we do not support redirection for commands other than simple built-in execution so the walker grammar is not changed.
Diffstat (limited to 'test/verify_error_output_test.sh')
-rwxr-xr-xtest/verify_error_output_test.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/verify_error_output_test.sh b/test/verify_error_output_test.sh
index e50252f..ebc5b3c 100755
--- a/test/verify_error_output_test.sh
+++ b/test/verify_error_output_test.sh
@@ -2,4 +2,4 @@
illegal="${srcdir}/scripts/illegal_script.sh"
output=$(./variable_printer "$illegal" 2>&1)
-[[ $output == "${illegal}(1) : error 3 : 128:1: command : ( compound_command | function | simple_command );, at offset 3"* ]]
+[[ $output == "${illegal}(1) : error 3 : 130:1: command_atom : ( compound_command | function | simple_command );, at offset 3"* ]]