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


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: greg boyd <gboyd.ccsf <at> gmail.com>
To: bug-grep <at> gnu.org, greg boyd <gboyd.ccsf <at> gmail.com>
Subject: surprising bug in grep -e with anchors
Date: Sun, 11 Oct 2015 14:01:07 -0700
[Message part 1 (text/plain, inline)]
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. )

-- 
-- greg
gboyd <at> ccsf.edu
Instructor, Computer Science
http://fog.ccsf.edu/~gboyd
[Message part 2 (text/html, inline)]

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

Previous Next


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