fix globbing in unquoted $* and $@

This commit is contained in:
Denis Vlasenko
2008-06-18 17:49:58 +00:00
parent 4a689e9b49
commit 324a3fdf87
3 changed files with 25 additions and 6 deletions

View File

@@ -0,0 +1,4 @@
param_glob.tests
param_glob.tests
param_glob.t*
param_glob.t*

View File

@@ -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 "$@"