Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: extra arguments inserted by glob thinger e:: get sorted afterwards



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