Abstract
Ways to handle Bash Script Parameters
$@
- Represents arguments passed to a Bash Script or command (Positional Parameters of a shell script)
- We can use
set --
to set and modify$@
- We can use
shift
to move$@
to the left, discarding the first argument
exec ”$@”
- Telling the shell to replace the current script or process with the command specified by the arguments that were passed to the script or function