Use "$@" instead of ${*} (see Special Parameters in the manual)
for f in "$@"; do
echo make sure you quote your "$variables" everywhere in the loop
# ...
There's a shorthand for this:
for f; do ...
Use "$@" instead of ${*} (see Special Parameters in the manual)
for f in "$@"; do
echo make sure you quote your "$variables" everywhere in the loop
# ...
There's a shorthand for this:
for f; do ...