I have this function in a Bash script:
comp() {
rsync -v --archive $1/ $TMP/$2 $3 $4 $5 $6 $7 $8 $9
}
As you can see, I'm doing something special with arguments $1
and $2
. Then I hackily just append all the rest of them to the end of the command. They go to $9
, but in fact all should be appended.
There must be an easier way for this?