Well isn't that curious!sunburnt wrote: It gives the first file... Not the wildcard argument.!!!
It seems that the wildcard is being interpreted by being the "$1" argument!
So feeding wildcards to a script just doesn`t work! Period!
Code: Select all
./script "t*"
so you would think that if you build a wildcard parameter with single quotes around it - like this -
Code: Select all
# w='"t*"'
# echo $w
"t*"
#
Code: Select all
./script $w or "$w"