I supply a script with cmd line args ...
e.g. somescript -a *.msg
When I echo the cmd line arguments in the script:
echo "$@" or with echo "$*"
(I want "-a *.msg")
Using a "set -f" within the script has no effect on the cmd line arguments.
However, if I use a "set -f" at the command prompt BEFORE I execute the script, file expansion doesn't occur.
How do I prevent file expansion from within the script on cmd line arguments?
I'm on solaris using ksh shell ...
e.g. somescript -a *.msg
When I echo the cmd line arguments in the script:
echo "$@" or with echo "$*"
(I want "-a *.msg")
Using a "set -f" within the script has no effect on the cmd line arguments.
However, if I use a "set -f" at the command prompt BEFORE I execute the script, file expansion doesn't occur.
How do I prevent file expansion from within the script on cmd line arguments?
I'm on solaris using ksh shell ...