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
This commit is contained in:
@@ -12,3 +12,6 @@ for a in "$@"""; do echo Should not be printed; done
|
||||
for a in """$@"; do echo Should not be printed; done
|
||||
for a in """$@"''"$@"''; do echo Should not be printed; done
|
||||
for a in ""; do echo Should be printed; done
|
||||
|
||||
# Bug 207: "$@" expands to nothing, and we erroneously glob "%s\\n" twice:
|
||||
printf "Empty:%s\\n" "$@"
|
||||
|
||||
Reference in New Issue
Block a user