Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Jul 2016 17:31:12 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 201650] (e)grep handling regexp wrong
Message-ID:  <bug-201650-8-XaiMs5XsIr@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-201650-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-201650-8@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help

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

--- Comment #4 from Daniƫl de Kok <me@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.


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