BASH alias $1 $2 ... query
Loïc Grenié
loic.grenie at gmail.com
Sun Apr 19 09:58:02 UTC 2009
2009/4/19 dave selby <dave6502 at googlemail.com>:
> Hi all,
>
> I am writing an svn alias that does some stuff before it svn's
Technically this is not an alias but a wrapper.
> #!/bin/bash
>
> echo -e '\n*** SAFE SVN ***\n'
>
> some tidying up ....
>
> svn $1 $2 $3 $4 $5 $6 $7 $8 $9
>
> It works but '$1 $2 $3 $4 $5 $6 $7 $8 $9' is clumsy and does not
> always work - is there a neater way
Yes: svn "$@"
Hope this helps,
Loïc
More information about the ubuntu-users
mailing list