[Bug 201650] (e)grep handling regexp wrong
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Tue Jul 12 17:31:12 UTC 2016
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=201650
--- Comment #4 from Daniël de Kok <me at danieldk.eu> ---
Created attachment 172418
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=172418&action=edit
Patch for fixing anchor treatment in BSD grep.
The attached patch solves the bsdgrep that I reported in the previous comment.
bsdgrep tries to find multiple matches by updating the starting offset after
finding a match. However, the REG_NOTBOL flag should be set for offsets beyond
0, to ensure that regexec treats anchors correctly.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list