I have the following script my.sh
:
echo $@
Now I want to see file glob expansion, so I do like this and it works OK:
$ bash my.sh *
$ f1 f2 my.sh
Now, I've tried suppress expansion using techniques described in this answer:
$ bash my.sh "*"
$ bash my.sh \*
But I still get listing of all files as the output. Why?
"$@"
– frostschutz Feb 03 '17 at 16:47