diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2009-03-20 12:05:14 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2009-03-20 12:05:14 +0000 |
commit | a8b6dff97f353c41e208e7e567f100a6c7af4605 (patch) | |
tree | 6a6722ac176e2f04261bf29202e87767c3d9349e /shell/hush_test | |
parent | 5368ad53e91ee056316389b5006b7eb0df2f2d11 (diff) | |
download | busybox-w32-a8b6dff97f353c41e208e7e567f100a6c7af4605.tar.gz busybox-w32-a8b6dff97f353c41e208e7e567f100a6c7af4605.tar.bz2 busybox-w32-a8b6dff97f353c41e208e7e567f100a6c7af4605.zip |
hush: fix bug 207 and "hush -c" parameter passing.
Now hush -c 'printf "%s\n" "$@"' (prints "\n")
and hush -c 'printf "%s\n" "$@"' qwe asd (prints "asd\n")
both work correctly
Diffstat (limited to 'shell/hush_test')
-rw-r--r-- | shell/hush_test/hush-parsing/starquoted2.right | 1 | ||||
-rwxr-xr-x | shell/hush_test/hush-parsing/starquoted2.tests | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/shell/hush_test/hush-parsing/starquoted2.right b/shell/hush_test/hush-parsing/starquoted2.right index 46f24369e..f4624dad5 100644 --- a/shell/hush_test/hush-parsing/starquoted2.right +++ b/shell/hush_test/hush-parsing/starquoted2.right | |||
@@ -1,2 +1,3 @@ | |||
1 | Should be printed | 1 | Should be printed |
2 | Should be printed | 2 | Should be printed |
3 | Empty: | ||
diff --git a/shell/hush_test/hush-parsing/starquoted2.tests b/shell/hush_test/hush-parsing/starquoted2.tests index 782d71b88..3475edeb2 100755 --- a/shell/hush_test/hush-parsing/starquoted2.tests +++ b/shell/hush_test/hush-parsing/starquoted2.tests | |||
@@ -12,3 +12,6 @@ for a in "$@"""; do echo Should not be printed; done | |||
12 | for a in """$@"; do echo Should not be printed; done | 12 | for a in """$@"; do echo Should not be printed; done |
13 | for a in """$@"''"$@"''; do echo Should not be printed; done | 13 | for a in """$@"''"$@"''; do echo Should not be printed; done |
14 | for a in ""; do echo Should be printed; done | 14 | for a in ""; do echo Should be printed; done |
15 | |||
16 | # Bug 207: "$@" expands to nothing, and we erroneously glob "%s\\n" twice: | ||
17 | printf "Empty:%s\\n" "$@" | ||