diff options
author | 2011-07-21 16:52:35 +0800 | |
---|---|---|
committer | 2011-08-02 15:42:14 +0800 | |
commit | 67a181a963a2d2a063030c4c3bcb997cdd34b8c8 (patch) | |
tree | 0698c6aafd0221c7feb4d6f1bb3e42659f78dbf7 /scripts | |
parent | Walker: reimplement the runtime for case statement (diff) | |
download | libbash-67a181a963a2d2a063030c4c3bcb997cdd34b8c8.tar.gz libbash-67a181a963a2d2a063030c4c3bcb997cdd34b8c8.tar.bz2 libbash-67a181a963a2d2a063030c4c3bcb997cdd34b8c8.zip |
Core: erase all \newline before parsing
The \newline is treated as a line continuation. Handling \newline in
the hidden channel is not ideal as it might break tokens. For example,
" \newline " will emit two BLANK tokens, which is not what we want.
Now \newline is erased before parsing. The drawback is it might not be
right when handling single quoted string and comments.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/command_execution.bash | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/command_execution.bash b/scripts/command_execution.bash index aa7f717..017d3af 100644 --- a/scripts/command_execution.bash +++ b/scripts/command_execution.bash @@ -69,3 +69,6 @@ echo "$(echo 'hi')" echo "`echo 'hi'`" array=(`echo 1` `echo 2` 3) echo ${array[@]} +ech\ +o Hello\ + world |