in reply to writing portable file processing scripts that use wildcards in filenames
It's comparable with doing:
in Perl. If you want mysub to deal with the interpolation, you shouldn't change mysub to prevent Perl doing the interpolation. Instead, you change the quotes, or escape the special symbols.mysub ("foo$BAR");
It's the same with a Unix shell. If you want your program to do the globbing, prevent the shell from expanding the *. Use quotes, or a backslash.
|
|---|