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.