diff options
author | Denis Vlasenko | 2008-06-18 17:49:58 +0000 |
---|---|---|
committer | Denis Vlasenko | 2008-06-18 17:49:58 +0000 |
commit | 324a3fdf87acf5d7e7bd852df921b19b97707ce8 (patch) | |
tree | 11efea2e0914ca9b68ef411f3509d33c470ec417 /shell/hush_test/hush-vars | |
parent | 4a689e9b49a0a40c062c5e4b1d46a100ec7f6d85 (diff) | |
download | busybox-324a3fdf87acf5d7e7bd852df921b19b97707ce8.zip busybox-324a3fdf87acf5d7e7bd852df921b19b97707ce8.tar.gz |
fix globbing in unquoted $* and $@
Diffstat (limited to 'shell/hush_test/hush-vars')
-rw-r--r-- | shell/hush_test/hush-vars/param_glob.right | 4 | ||||
-rwxr-xr-x | shell/hush_test/hush-vars/param_glob.tests | 10 |
2 files changed, 14 insertions, 0 deletions
diff --git a/shell/hush_test/hush-vars/param_glob.right b/shell/hush_test/hush-vars/param_glob.right new file mode 100644 index 0000000..bdee8fe --- /dev/null +++ b/shell/hush_test/hush-vars/param_glob.right @@ -0,0 +1,4 @@ +param_glob.tests +param_glob.tests +param_glob.t* +param_glob.t* diff --git a/shell/hush_test/hush-vars/param_glob.tests b/shell/hush_test/hush-vars/param_glob.tests new file mode 100755 index 0000000..801d58e --- /dev/null +++ b/shell/hush_test/hush-vars/param_glob.tests @@ -0,0 +1,10 @@ +if test $# = 0; then + #BUG in builtin_exec! will glob param! + #exec "$THIS_SH" "$0" 'param_glob.t*' + "$THIS_SH" "$0" 'param_glob.t*' + exit +fi +echo $* +echo $@ +echo "$*" +echo "$@" |