Date: Wed, 27 Sep 2023 22:36:37 -0500 From: Kyle Evans <kevans@FreeBSD.org> To: Greg 'groggy' Lehey <grog@FreeBSD.org> Cc: Jamie Landeg-Jones <jamie@catflap.org>, freebsd-current@freebsd.org Subject: Re: grep(1) bug - duplicate output lines Message-ID: <2ef23ce1-747e-b722-cc16-358ac043df4d@FreeBSD.org> In-Reply-To: <20230928033418.GH68731@eureka.lemis.com> References: <202309280240.38S2esgN015958@donotpassgo.dyslexicfish.net> <8d0658e9-8984-a241-ad1d-e5aa1328d7fa@FreeBSD.org> <20230928033418.GH68731@eureka.lemis.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 9/27/23 22:34, Greg 'groggy' Lehey wrote: > 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. > I added the bug sometime before we went live with bsdgrep, I believe. GNU grep naturally didn't do things quite like this.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2ef23ce1-747e-b722-cc16-358ac043df4d>