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=3D201650

--- Comment #4 from Dani=C3=ABl de Kok <me@danieldk.eu> ---
Created attachment 172418
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D172418&action=
=3Dedit
Patch for fixing anchor treatment in BSD grep.

The attached patch solves the bsdgrep that I reported in the previous comme=
nt.
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 bey=
ond
0, to ensure that regexec treats anchors correctly.

--=20
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>