GNU bug report logs - #35159
Bug in grep -e (GNU grep 2.51)

Previous Next

Package: grep;

Reported by: Andrew Browne <andrew.p.browne-nr <at> raytheon.com>

Date: Fri, 5 Apr 2019 14:31:02 UTC

Severity: normal

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

Bug is archived. No further changes may be made.

Full log


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

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Andrew Browne <andrew.p.browne-nr <at> raytheon.com>
Cc: 35159-done <at> debbugs.gnu.org
Subject: Re: bug#35159: Bug in grep -e (GNU grep 2.51)
Date: Tue, 9 Apr 2019 11:53:29 -0700
On 4/8/19 6:03 AM, Andrew Browne wrote:
> * dummyfile1.txt contains "blah blah blah one two three blah blah blah one two three blah blah blah"
> * dummyfile2.txt contains "blah blah blah one two three blah blah blah one two three"
> * 'grep --color -i -e blah -e two dummyfile1.txt' produces the file with all colored "blah" and none of the "two" are colored.
> * 'grep --color -i -e blah -e two dummyfile2.txt' produces the file with all colored "blah" and only the second "two" is colored. (It seems to like finding <pattern2> on a line only after all of <pattern1> are found on that line.)

I don't observe these symptoms in grep 3.3, the current version. So I
think the bug has been fixed, and am closing the bug report. Thanks
anyway for reporting it. grep 2.5.1 was released in 2004, and it's time
to upgrade for other reasons.





This bug report was last modified 6 years and 104 days ago.

Previous Next


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