https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=201650

--- Comment #4 from Daniƫl de Kok <m...@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.
_______________________________________________
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"

Reply via email to