Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: xargs with functions
On 11/17/2014 10:40 AM, Axel Beckert wrote:
Axel,
    But zsh's zargs seems to support functions (but not aliases). Try 
this: % autoload -U zargs % zargs -- * -- l ,s
Not too shabby! This worked:
    $zargs -- `ls -1` -- l ,s
'piped' output of  'ls -1' to my function 'l'.
But this is what I've done previously:
     $l ,s `ls -1`
... which is more compact.  Is there any reason to prefer zargs? Perhaps 
it can swallow
more complex input?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author