[Bug 201650] (e)grep handling regexp wrong
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Fri Jul 17 14:51:13 UTC 2015
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 at FreeBSD.org
Reporter: franz at 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.
More information about the freebsd-bugs
mailing list