Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Filename Generation - *(.)



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