Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Jul 2015 14:51:13 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 201650] (e)grep handling regexp wrong
Message-ID:  <bug-201650-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=201650

            Bug ID: 201650
           Summary: (e)grep handling regexp wrong
           Product: Base System
           Version: 11.0-CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: bin
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: franz@bett.ag

Today, thanks to a tweet from @moo_pronto
(https://twitter.com/moo_pronto/status/622035032463527936) i noticed that
FreeBSD's egrep is handling the regexp wrong.

echo "abc" | egrep -o '^[a-z]' should never also find "b" and "c", as it only
should find the first character after the line beginning (^).

It would be okay if it was ^[a-z]+ but it's not. :)

I am very certain that is an error in regexp handling.

(Sorry if i ruined anyone's weekend)

- Franz

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-201650-8>