diff options
author | 2011-06-13 18:43:25 +0800 | |
---|---|---|
committer | 2011-06-14 15:57:33 +0300 | |
commit | 98598d7ccf5e412a61e02dcca488bc109324d41b (patch) | |
tree | c80d006dedc279097a31cadb8923ffdf55f6183c /test | |
parent | Parser: fix bracket pattern match negation (diff) | |
download | libbash-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')
-rwxr-xr-x | test/verify_error_output_test.sh | 2 |
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"* ]] |