I have a bash script that is writing out a file to /usr/local/bin that needs to take in additional parameters.
I'm trying something like this:
  echo "PYTHONPATH=/opt/script_folder/$TIMESTAMP /opt/script_folder/$TIMESTAMP/script -param <param_value> $@" | sudo tee /usr/local/bin/script_alias
I want the user to be able to use this by running script_alias -second_param <second_value> ... and the script picking up the second parameter.
However, the $@ is pulling in every param I pass to the shell script writing out the /usr/local/bin file.  I tried escaping the $ to \$@ but the $@ is not being written out.  Any thoughts on why?
