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!
Well isn't that curious!
Code:
./script "t*"
WORKS
so you would think that if you build a wildcard parameter with single quotes around it - like this -
Enclosing in single quotes turns off expansion of wildcards -i mean the outer quotes. This: "'$var'" would still get expanded. Sometimes you have to escape characters to keep them from being immediately expanded by the shell: \$var
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum