Is there a way to change the command line arguments in a Bash script? For example, a Bash script is invoked like this:
./foo arg1 arg2
Is there a way to change the value of arg1 within the script? Something like:
arg1
$1="chintz"