I'd like to be able to write *
to my script, and to get *
as-is (i.e., without expansion).
Bash will try to replace it with local files matching this pattern, and if this pattern doesn't exist, bash will pass the asterisk without modifications.
I don't want to escape. I know it's possible ( *, '*' ).
e.g.
myscript --arg * --- will pass local files to the script
myscript --arg=* --- will pass "--arg=*", since there are no filenames starting with "--arg=<...>"
Can I tell bash to skip wildcard interpretation on certain occasions? e.g. with commands starting with myscript
?