I have a script I am trying to call that needs to have the $ symbol passed to it. If I run the script as
./script "blah$blah"
it is passed in fine but then the script calls another program I have no control over which then expands the parameter to just “blah”. The program is being called by the command program $@. I was wondering if there was a way to prevent the parameter from being expanded when passed to the next script.
A couple of options involving changing the quoting:
I hope this helps.