Date: Thu, 28 Sep 2023 13:34:18 +1000 From: Greg 'groggy' Lehey <grog@FreeBSD.org> To: Kyle Evans <kevans@FreeBSD.org> Cc: Jamie Landeg-Jones <jamie@catflap.org>, freebsd-current@freebsd.org Subject: Re: grep(1) bug - duplicate output lines Message-ID: <20230928033418.GH68731@eureka.lemis.com> In-Reply-To: <8d0658e9-8984-a241-ad1d-e5aa1328d7fa@FreeBSD.org> References: <202309280240.38S2esgN015958@donotpassgo.dyslexicfish.net> <8d0658e9-8984-a241-ad1d-e5aa1328d7fa@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--0XhtP95kHFp3KGBe Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 --0XhtP95kHFp3KGBe Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iEYEARECAAYFAmUU9DoACgkQIubykFB6QiM5pACdFU9D8BykO8Nwvl24WI9W3YVz ajAAniFQm8sM27YdgN4uci064mKllOA1 =n+ZL -----END PGP SIGNATURE----- --0XhtP95kHFp3KGBe--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20230928033418.GH68731>