bug-grep
[Top][All Lists]
Advanced

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

Re: grep not taking last conflicting option as choice?


From: Paul Eggert
Subject: Re: grep not taking last conflicting option as choice?
Date: Tue, 20 Aug 2013 23:57:49 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130803 Thunderbird/17.0.8

Linda Walsh wrote:
> Isn't it usually the case with conflicting options that the last
> one gets taken as the choice

Not really.  Often, conflicting options are reported as conflicts.
For example, "join -e1 -e2" reports "conflicting empty-field
replacement strings".  Whether conflicting options should be
reported as conflicts, or later should override earlier, is
more of a pragmatic decision.

We shouldn't encourage people putting -P or -E
in GREP_OPTIONS; that would break too many uses.
So I don't see the value for having later options
override earlier ones here.  It seems more useful
to report an error.



reply via email to

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