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: [email protected]
Reporter: [email protected]
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.
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"