Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Filename Generation - *(.)
- X-seq: zsh-users 11931
- From: Stephane Chazelas <Stephane_Chazelas@xxxxxxxx>
- To: Atom Smasher <atom@xxxxxxxxxxx>, zsh-users@xxxxxxxxxx
- Subject: Re: Filename Generation - *(.)
- Date: Fri, 5 Oct 2007 09:49:44 +0100
- In-reply-to: <20071005084122.GA5535@xxxxxxxxxxxxxxx>
- Mail-followup-to: Atom Smasher <atom@xxxxxxxxxxx>, zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20071005080339.19628.qmail@xxxxxxxxxxx> <20071005084122.GA5535@xxxxxxxxxxxxxxx>
On Fri, Oct 05, 2007 at 09:41:22AM +0100, Stephane Chazelas wrote:
[...]
> In any case, when passing /unknown/ arguments (practically, if
> you can't make sure none of them may start with a - or +), you
> need to mark the end of options:
>
> grep foo -- *(.)
[...]
Oops,
sorry, end of options goes after the options and before the
remaining arguments obviously.
grep -- foo *(.)
standard greps don't recognise options after the first
non-option argument, so
grep foo *(.)
would be OK. But GNU grep (unless called in POSIX mode, as GNU
utilities in general) has the problem.
--
Stéphane
Messages sorted by:
Reverse Date,
Date,
Thread,
Author