[arch-general] replacement for clyde
Vitor Eiji Justus Sakaguti
vitoreiji0 at gmail.com
Fri Aug 19 13:28:41 EDT 2011
On Fri, Aug 19, 2011 at 2:13 PM, Kazuo Teramoto <kaz.rag at gmail.com> wrote:
> On Fri, Aug 19, 2011 at 11:08 AM, Vitor Eiji Justus Sakaguti
> <vitoreiji0 at gmail.com> wrote:
>> # Better yaourt
>> yaourt () {
>> if [[ $# == 0 ]]
>> then
>> /usr/bin/yaourt -Sayu
>> else
>> /usr/bin/yaourt $@
>> fi
>> }
>>
>>
>
> For something more terse:
>
> yaourt () { yaourt ${@:--Sayu}; }
Looks nice, thanks! But it should be
yaourt () { /usr/bin/yaourt ${@:--Sayu}; }
or we are trapped in and endless loop.
Vitor
More information about the arch-general
mailing list