GNU bug report logs - #43782
in egrep (grep 3.0), the order of include & exclude is surprisingly significant

Previous Next

Package: grep;

Reported by: John Ruckstuhl <John.Ruckstuhl <at> intusurg.com>

Date: Sat, 3 Oct 2020 19:03:02 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


Message #10 received at 43782-done <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: John Ruckstuhl <John.Ruckstuhl <at> intusurg.com>
Cc: 43782-done <at> debbugs.gnu.org
Subject: Re: bug#43782: in egrep (grep 3.0), the order of include & exclude is
 surprisingly significant
Date: Sat, 3 Oct 2020 12:44:22 -0700
[Message part 1 (text/plain, inline)]
On 10/3/20 12:00 PM, John Ruckstuhl wrote:
> In egrep (grep 3.0), the order of options (multiple --include and --exclude), is surprisingly significant.
> I was puzzled by 5 extra output lines in my first egrep,
> so I did another egrep, with the --include moved up front.

That's expected behavior, but it's not documented and should be. Thanks for 
bringing it up. I installed the attached doc patch.
[0001-doc-document-include-exclude-better.patch (text/x-patch, attachment)]

This bug report was last modified 4 years and 320 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.