bug-grep
[Top][All Lists]
Advanced

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

bug#21670: surprising bug in grep -e with anchors


From: greg boyd
Subject: bug#21670: surprising bug in grep -e with anchors
Date: Sun, 11 Oct 2015 14:01:07 -0700

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
address@hidden
Instructor, Computer Science
http://fog.ccsf.edu/~gboyd


reply via email to

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