From: "Nikolai Weibull" <now@bitwi.se>
To: "Mikael Magnusson" <mikachu@gmail.com>
Cc: zsh-workers <zsh-workers@sunsite.dk>
Subject: Re: zargs doesn't work reliably
Date: Fri, 18 Aug 2006 01:19:08 +0200 [thread overview]
Message-ID: <dbfc82860608171619m50c294cdwe869d0525c0f4157@mail.gmail.com> (raw)
In-Reply-To: <237967ef0608171559k1bd8053bxf7a3d1cb53ef33e7@mail.gmail.com>
On 8/18/06, Mikael Magnusson <mikachu@gmail.com> 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
next prev parent reply other threads:[~2006-08-17 23:19 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-17 22:59 Mikael Magnusson
2006-08-17 23:19 ` Nikolai Weibull [this message]
2006-08-18 2:42 ` Bart Schaefer
2006-08-18 3:16 ` Mikael Magnusson
2006-08-18 11:24 ` Vincent Lefevre
2006-08-18 13:12 ` Mikael Magnusson
2006-08-18 16:28 ` Vincent Lefevre
2006-08-18 18:15 ` Bart Schaefer
2006-08-18 23:44 ` Mikael Magnusson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=dbfc82860608171619m50c294cdwe869d0525c0f4157@mail.gmail.com \
--to=now@bitwi.se \
--cc=mikachu@gmail.com \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).