From nobody Thu Sep 28 03:34:18 2023 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RwzcK15vHz4vRc8 for ; Thu, 28 Sep 2023 03:34:25 +0000 (UTC) (envelope-from grog@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RwzcK0QHBz3WZF; Thu, 28 Sep 2023 03:34:25 +0000 (UTC) (envelope-from grog@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1695872065; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=eGmGJJSAZEDW0b+pSr1rgKznDNdvagDDMrKRxGpzhys=; b=jV0Qomb+6Qho5rWc6klgOnOQT1OO9td/nULwSDkiBtJZNabQ7QJYqysYcWW6UIxLFReMk7 g7iWSPPCKzyJ0YEC9ZMx5Nsmb5Q0Kub3nHj07Z9aTUdc4RMSlGFZXeyLmljw+sX1PDvZaN D6E/HXmeE4RXsXq+uHSVoK6pFf8ySHMBnM25PkvCJh75zxZ8hieJ+RdYxZps49Gd0YV2H0 y9wRzJSKp91cLtd2r7vhSZg1ySwpPbBQheFkr8/J2EZhuSLxS70prJrkyoaSMWzCbjDUkG dWnFqUjD4SJI98Cdy13GbPnIT9utm/Ce6EJqOv4t69YwU65p2U6Tj8N2B/7sAA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1695872065; a=rsa-sha256; cv=none; b=grIJiQ5H2TrQ9FbP3KRsFBK92r19GFuJ5ty+aa/BSqfBneLQT7pDHEeeEqPqOuCEYdZYMe mrAaSh2F5Ac6L5cAlABFW1mcHeb8GW85uxj8NfR3MmtptwaeFk/xZjDdF7re0A7U8JztyY yeR8WUPNCG74CDvIc2O2eEV2NZN+Zc+0Jcw2e75SD6bqOWw2AYtphpPmXAYjiDbRiQosYn q0q8V8ObF5H8ZDfOu2UjDjtSu0fpTx8ojlLNyMVbgowKh9VzCan0oRd4D0quTCnhiQc5vR pyUb4VWUZ6kkE8o3oeXqOGdsqRxvhW0kdavWpp/sb+MbQefkAwKxDvAhTFRytA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1695872065; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=eGmGJJSAZEDW0b+pSr1rgKznDNdvagDDMrKRxGpzhys=; b=IPZoqoJ8tgUZaiXSv+bMQkyszzT76/IS1UTGAdyFabM+oU10/9l2gWsQT9kcJTBM232kOr 7oIteGC3vJWeRaULur71p27obj3SsX11ZQUPitOIj5OXT2KcdIDyZxhL0xATKmSZ3jgDzg ey2YM2SjvL8pn9kPFdROpr9Rqn9mU7HIvwU8yDw/HtGy0CUSzBNFgaxgPp1TyDNakn+8cu lWeaPFb6sl92BkXqfrk+7M1bOXkw09fAEL7R8f6sYnTLG6FRD6v29a7qP8JxI8AwnznCbP Mom2Un783XYirdud0UbDP3ZNBmKD1QA0IkPiHXH1v5zBe8XyU8ZWbqfoic/afQ== Received: from eureka.lemis.com (121-200-11-253.79c80b.mel.nbn.aussiebb.net [121.200.11.253]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: grog/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4RwzcH3qjRz1Qtx; Thu, 28 Sep 2023 03:34:23 +0000 (UTC) (envelope-from grog@FreeBSD.org) Date: Thu, 28 Sep 2023 13:34:18 +1000 From: Greg 'groggy' Lehey To: Kyle Evans Cc: Jamie Landeg-Jones , freebsd-current@freebsd.org Subject: Re: grep(1) bug - duplicate output lines Message-ID: <20230928033418.GH68731@eureka.lemis.com> References: <202309280240.38S2esgN015958@donotpassgo.dyslexicfish.net> <8d0658e9-8984-a241-ad1d-e5aa1328d7fa@FreeBSD.org> List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="0XhtP95kHFp3KGBe" Content-Disposition: inline In-Reply-To: <8d0658e9-8984-a241-ad1d-e5aa1328d7fa@FreeBSD.org> Organization: The FreeBSD Project Phone: +61-3-5309-0418 Mobile: +61-490-494-038. Use only as instructed. WWW-Home-Page: https://www.FreeBSD X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 User-Agent: Mutt/1.6.1 (2016-04-27) --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--