I have a bash script that is a simple wrapper around another process:
$ cat ~/bin/s3cmd
#!/bin/sh
trickle -u 80 ~/bin/s3cmd.py $*
$
This works great when the parameters don't contain spaces. However, it seems to fail whenever the parameters passed to the outer s3cmd
script contain spaces, even if those are escaped on the command line.
How do I whitespace-proof this, such that each single parameter is passed on properly to s3cmd.py
?