bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: grep recurse fails


From: Dave B
Subject: Re: grep recurse fails
Date: Mon, 12 Oct 2009 16:22:19 +0100
User-agent: KMail/1.11.4 (Linux/2.6.28-15-generic; KDE/4.2.4; x86_64; ; )

On Monday 12 October 2009, Andreas Schwab wrote:

> John Cowan <address@hidden> writes:
> > That works, but it's still a bug that grep recognizes options after the
> > pattern argument has been given.
>
> export POSIXLY_CORRECT=1

This is interesting. Using that makes grep (and I suppose all the utilities 
that honour that) ignore options after operands, which is what guideline 9 
says.

"All options should precede operands on the command line."

with "should" interpreted as "shall" as explained later. But then what's the 
meaning of rule 14, and how would that be supposed to be enforced when 
POSIXLY_CORRECT is set? It would seem to be clashing with 9.

Thanks.

-- 
D.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]