Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zargs doesn't work reliably
- X-seq: zsh-workers 22615
- From: "Nikolai Weibull" <now@xxxxxxxx>
- To: "Mikael Magnusson" <mikachu@xxxxxxxxx>
- Subject: Re: zargs doesn't work reliably
- Date: Fri, 18 Aug 2006 01:19:08 +0200
- Cc: zsh-workers <zsh-workers@xxxxxxxxxx>
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=lCfYsvJPwHppwNjcBwCY4josfJ4BqZRnetch8SOota2kCFc7CUm0T3VgUuqYOl21xhC9RXTCS0/Sp8t0zBnjEbqh0KcePTVVulAm8ZXrKFN635H0qJuyEPRHQKQcDApIWr0vSQtc7FA1gk/Mi6ia+c6rAoJ7eNt4uIBXl4bDNfw=
- In-reply-to: <237967ef0608171559k1bd8053bxf7a3d1cb53ef33e7@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <237967ef0608171559k1bd8053bxf7a3d1cb53ef33e7@xxxxxxxxxxxxxx>
- Sender: nikolai.weibull@xxxxxxxxx
On 8/18/06, Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
Usage: zargs [options --] [input-args] [-- command [initial-args]]
% touch -- -- -+
% zargs -- * -- ls -d
(eval):2: command not found: -+
% zargs * -- ls -d
ls: invalid option -- +
Try `ls --help' for more information.
% zargs * ls -d
-+ ls -d
since input-args is the only part you do not control, it should come
last, like so
Usage: zargs [options --] [command [initial-args]] -- [input-args]
A problem is how to give -- as initial-args then, maybe someone less
tired can come up with something?
Well, all you'd need to worry about is whether it's the first, second,
or third -- on the line. Still, isn't doing something like
% zargs ./* -- ls -d
easier than changing the semantics of zargs option-parsing?
nikolai
Messages sorted by:
Reverse Date,
Date,
Thread,
Author