BASH alias $1 $2 ... query

dave selby dave6502 at googlemail.com
Sun Apr 19 10:02:04 UTC 2009


2009/4/19 Loïc Grenié <loic.grenie at gmail.com>:
> 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 "$@"

Many thanks also

Dave



>       Hope this helps,
>
>           Loïc
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>



-- 

Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html




More information about the ubuntu-users mailing list