Re: grep(1) bug - duplicate output lines

From: Greg 'groggy' Lehey <grog_at_FreeBSD.org>
Date: Thu, 28 Sep 2023 03:34:18 UTC
On Wednesday, 27 September 2023 at 22:30:43 -0500, Kyle Evans wrote:
> On 9/27/23 21:40, Jamie Landeg-Jones wrote:
>> When using color=always and a regex of '.' (for example), output lines
>> are duplicated.
>>
>> $ grep --version
>> grep (BSD grep, GNU compatible) 2.6.0-FreeBSD
>>
>> E.G.:
>>
>> $ grep --color=always . /etc/fstab
>
> I think this is what we want:
>
> https://people.freebsd.org/~kevans/grep-color.diff

That looks surprisingly complicated.  FWIW, this issue didn't occur
with older versions of grep.

Greg
--
Sent from my desktop computer.
See complete headers for address and phone numbers.
This message is digitally signed.  If your Microsoft mail program
reports problems, please read http://lemis.com/broken-MUA.php