From 324a3fdf87acf5d7e7bd852df921b19b97707ce8 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Wed, 18 Jun 2008 17:49:58 +0000 Subject: fix globbing in unquoted $* and $@ --- shell/hush_test/hush-vars/param_glob.right | 4 ++++ shell/hush_test/hush-vars/param_glob.tests | 10 ++++++++++ 2 files changed, 14 insertions(+) create mode 100644 shell/hush_test/hush-vars/param_glob.right create mode 100755 shell/hush_test/hush-vars/param_glob.tests (limited to 'shell/hush_test/hush-vars') 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 000000000..bdee8fe0f --- /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 000000000..801d58ee7 --- /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 "$@" -- cgit v1.2.3