diff options
author | Denys Vlasenko | 2010-11-22 17:58:14 +0100 |
---|---|---|
committer | Denys Vlasenko | 2010-11-22 17:58:14 +0100 |
commit | 7b4c0fd5f4df4541a1659de04823326cd22c254e (patch) | |
tree | b0e14ceeb84af1155ba5dd25016569b20ff1e700 /shell/hush_test/hush-misc | |
parent | 1e23f32453d8aa84c66c8f0bb9f753d68614d05a (diff) | |
download | busybox-7b4c0fd5f4df4541a1659de04823326cd22c254e.zip busybox-7b4c0fd5f4df4541a1659de04823326cd22c254e.tar.gz |
hush: fix improper handling of newline and hash chars in few corner cases
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'shell/hush_test/hush-misc')
-rw-r--r-- | shell/hush_test/hush-misc/assignment3.right | 2 | ||||
-rwxr-xr-x | shell/hush_test/hush-misc/assignment3.tests | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/shell/hush_test/hush-misc/assignment3.right b/shell/hush_test/hush-misc/assignment3.right new file mode 100644 index 0000000..0f02d7c --- /dev/null +++ b/shell/hush_test/hush-misc/assignment3.right @@ -0,0 +1,2 @@ +Done:0 +abc=123 diff --git a/shell/hush_test/hush-misc/assignment3.tests b/shell/hush_test/hush-misc/assignment3.tests new file mode 100755 index 0000000..790129b --- /dev/null +++ b/shell/hush_test/hush-misc/assignment3.tests @@ -0,0 +1,5 @@ +# This must be interpreted as assignments +a=1 b\ +=2 c=3 +echo Done:$? +echo abc=$a$b$c |