URL:
<http://savannah.gnu.org/bugs/?17492>
Summary: BRE with caret in the middle of pattern doesn't
match
Project: grep
Submitted by: None
Submitted on: Monday 08/21/2006 at 17:59 UTC
Category: None
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
_______________________________________________________
Details:
When I call
grep xx^x
it does not find lines containing "xx^x". Since the caret is not the first
character of the pattern, it should match a literal caret as opposed to the
beginning of a line (anchor).
It seems to work if you do the following:
grep .x^x
I tried grep xx^x on a solaris box and it works there.
A workaround for GNU grep seems to be
grep xx\^x
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?17492>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/