GNU bug report logs - #21670
surprising bug in grep -e with anchors

Previous Next

Package: grep;

Reported by: greg boyd <gboyd.ccsf <at> gmail.com>

Date: Sun, 11 Oct 2015 23:57:02 UTC

Severity: normal

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

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Jim Meyering <jim <at> meyering.net>
To: greg boyd <gboyd.ccsf <at> gmail.com>, drakewang <at> gmail.com
Cc: 21670 <at> debbugs.gnu.org
Subject: bug#21670: surprising bug in grep -e with anchors
Date: Tue, 27 Oct 2015 17:37:46 -0700
[Message part 1 (text/plain, inline)]
On Sun, Oct 11, 2015 at 2:01 PM, greg boyd <gboyd.ccsf <at> gmail.com> wrote:
> This bug appears in GNU grep version 2.20. It is not present in the older
> version I have installed on a home system (2.6.3.)
>
> test case (single line)
> abchelloabc
>
> grep does not find the line with grep -e '^hello'  nor with grep -e 'hello$'
> however, the line is output with
> grep -e '^hello' -e 'hello$'
>
> I downloaded, built and tested the bug on GNU grep 2.21 and it still
> appears.
>
> weird.
>
> (this was found by an introductory Linux student. )

I asked Greg for the student's name and then added two names to
THANKS.in with this:
[0001-maint-update-THANKS.in.patch (text/x-patch, attachment)]

This bug report was last modified 9 years and 206 days ago.

Previous Next


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