bug-grep
[Top][All Lists]
Advanced

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

[bug #17492] BRE with caret in the middle of pattern doesn't match


From: anonymous
Subject: [bug #17492] BRE with caret in the middle of pattern doesn't match
Date: Mon, 21 Aug 2006 17:59:49 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7

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/





reply via email to

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