Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: xargs with functions
- X-seq: zsh-workers 33703
- From: Stephane Chazelas <stephane.chazelas@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: xargs with functions
- Date: Mon, 17 Nov 2014 20:26:22 +0000
- In-reply-to: <20141117184003.GH4048__19641.0627141178$1416250319$gmane$org@sym.noone.org>
- 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: <546A3D6A.4090609@eastlink.ca> <20141117184003.GH4048__19641.0627141178$1416250319$gmane$org@sym.noone.org>
2014-11-17 19:40:04 +0100, Axel Beckert:
[...]
> But zsh's zargs seems to support functions (but not aliases). Try this:
>
> % autoload -U zargs
> % zargs -- * -- l ,s
[...]
Strictly speaking, to avoid issues with files called "--", you
should use:
zargs --eof= -- * '' my-function
Or as suggested by the manual:
zargs -e.. -- * .. my-function
--
Stephane
Messages sorted by:
Reverse Date,
Date,
Thread,
Author