Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Jan 2017 20:21:03 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 195763] bsdgrep, empty matches and -o
Message-ID:  <bug-195763-8-KwbQ5sMS32@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-195763-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-195763-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=3D195763

Kyle Evans <bsdports@kyle-evans.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #179175|0                           |1
        is obsolete|                            |

--- Comment #6 from Kyle Evans <bsdports@kyle-evans.net> ---
Created attachment 179227
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D179227&action=
=3Dedit
Proposed patch to address line matching issues

Address one last nit that I found in some more extensive testing -- if we're
going to replace the last match made (due to overlap), it should be an earl=
ier
or strictly longer match than the current one.

Test case: echo "abcdef" | grep -o -e "ab" -e "bc"
Swap the order of -e arguments, "ab" and "bc" would previously yield differ=
ent
results when they should both yield "ab".

--=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-195763-8-KwbQ5sMS32>