Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: extra arguments inserted by glob thinger e:: get sorted afterwards
- X-seq: zsh-workers 27689
- From: Frank Terbeck <ft@xxxxxxxxxxxxxxxxxxx>
- To: JÃrg Sommer <joerg@xxxxxxxxxxxx>
- Subject: Re: extra arguments inserted by glob thinger e:: get sorted afterwards
- Date: Mon, 08 Feb 2010 13:44:32 +0100
- Cc: zsh-workers@xxxxxxx
- In-reply-to: <slrnhmvok6.2k5.joerg@xxxxxxxxxxxx> ("JÃrg Sommer"'s message of "Mon, 8 Feb 2010 10:08:06 +0000 (UTC)")
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <237967ef1002050715o3be2d441rcc8dbeb3e2b00483@xxxxxxxxxxxxxx> <slrnhmvok6.2k5.joerg@xxxxxxxxxxxx>
JÃrg Sommer wrote:
[...]
>> % print -- *.sh(oNe:'reply=(-f $REPLY)':)
>> -f zmpc.sh -f ifs.sh -f test.sh -f script_pandora.sh
>
> Why not use $^?
>
> % print -- -f\ ${(f)^"$(print -l /bin/ls*)"}
> -f /bin/ls -f /bin/lsmod
Because:
% print -l -- -f\ ${(f)^"$(print -l /bin/ls*)"}
-f /bin/ls
-f /bin/lsmod
"-f /bin/ls" would be one word to the shell.
Regards, Frank
--
In protocol design, perfection has been reached not when there is
nothing left to add, but when there is nothing left to take away.
-- RFC 1925
Messages sorted by:
Reverse Date,
Date,
Thread,
Author