From nobody Fri Sep 29 20:37:59 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 4Ry2Gv6kJ4z4vdXY for ; Fri, 29 Sep 2023 20:37:59 +0000 (UTC) (envelope-from kevans@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 4Ry2Gv6G4cz3QZZ; Fri, 29 Sep 2023 20:37:59 +0000 (UTC) (envelope-from kevans@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1696019879; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=nd0//DWnrkQ9q4zMxTuVYz7v6c5AmONuFgpmsn0eA+o=; b=F6LX4T4+qekp9S74dkcP6xbRKuALSYL4Frsgy8kUR5WhLVI1+8kHjwkhsATf4xfkHg15Qq aJk1blj/nRRFmtU5PRhYvFqugIcHXbK5cHXv18gQwKqUM+gpfsSEbw4dLrW+yVwEduMXEZ F6BG8MgZMypETJAtKzAR31yWQQ7nzLdzDRmeMSAMmf9fjO3aWO6P4CVKJukefTmGEJC0v8 IYam9nGkp1Akai2ZSOFjW41TLkR3cqTpphsb66BaWQH0SFqW21x5HzXyifR+vE7F3VMcou WJWLCEMLs4ZXTaoVLSbKbWHfxbvLfHRz+FNC9hGyFhcSY7rJ4k5GAw2Kl8f3iQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1696019879; a=rsa-sha256; cv=none; b=mXTaqNmtwK3nYFrEWwj6PzFZnKrkGGspV2WshLLF464RTih9otMISAsULBVYducWr+IWKY 1pm3yT7gUIV451i7uCsjbjThehci2U7XJmvrR03HfmuKFN40ixc6hRYIN8+LFPLDLEF1Yj 8SBFLdNckaf8qLd20nxnBuRVpS/Y5k5v4pdnad6dp2vCDujfgSZoESQ3iPjGQgFAT/zhzw 1jTcXwwemWcf6DArT6kqIs9VeN1FNLJV9QaG1ZD5OssqmowhRCSg4XY46hhjDp8PYq0tyn zpynsj6wE4X3X/2WCVL03b1KQa1vksbfKgGBllXe7rjUxxKOlhhZuRz/uDtw0Q== 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=1696019879; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=nd0//DWnrkQ9q4zMxTuVYz7v6c5AmONuFgpmsn0eA+o=; b=yesvNzEzFuBFBH64pK6iJG3pvQXFOB1GNyDPZFahTjXwbBkK2qQB894cIWeYRTrTmga2V0 sk2Kb3aZiurkjoYi1IKF2EawrteQ3pw5glm88vxzxL/dGt7UVruxMqRfr5kXV3IJAGd1R4 jh1xKqtWPeWWF2mQn8lKByFpXH715QbCAvEHO/PeX6PKKgOI15qJdo5PqJZVWiZw1TK2yz N280ibpTt69l6GYxeNZgexawqiLVJQpMKcZFg2qTV+zyTHj19rWis6rrCf6jjEBWCZdyI9 6lW9k4ZEAZiem/+IXYO+wiQ8aXVbyCEg61EtIbNH04/XXB6XaP5ydHWuUO/iXQ== Received: from [10.9.4.95] (unknown [209.182.120.176]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) (Authenticated sender: kevans/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4Ry2Gv3hmmz1DSs; Fri, 29 Sep 2023 20:37:59 +0000 (UTC) (envelope-from kevans@FreeBSD.org) Message-ID: <883774ff-c630-72bf-ebc3-cc53e4d40d03@FreeBSD.org> Date: Fri, 29 Sep 2023 15:37:59 -0500 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 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: grep(1) bug - duplicate output lines Content-Language: en-US From: Kyle Evans To: Jamie Landeg-Jones , freebsd-current@FreeBSD.org References: <202309280240.38S2esgN015958@donotpassgo.dyslexicfish.net> <8d0658e9-8984-a241-ad1d-e5aa1328d7fa@FreeBSD.org> <202309291629.38TGTU56092229@donotpassgo.dyslexicfish.net> <202309291825.38TIPNN2096338@donotpassgo.dyslexicfish.net> <85039cfe-3c59-173d-f2f2-f0ca8e0fa1c8@FreeBSD.org> In-Reply-To: <85039cfe-3c59-173d-f2f2-f0ca8e0fa1c8@FreeBSD.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 9/29/23 15:37, Kyle Evans wrote: > On 9/29/23 13:25, Jamie Landeg-Jones wrote: >> Jamie Landeg-Jones wrote: >> >>> Brilliant! Thanks for the quick response and fix. It works fine for me - >>> I've not managed to break it again :-) >> >> Famous last words.... >> >> "grep -v" now produces duplicate lines! e.g. : >> > > Alright, fine, be that way. :-) Try this on top of the existing patch: > > https://people.freebsd.org/~kevans/grep-color.diff > This should be spelled: https://people.freebsd.org/~kevans/grep-color-addition.diff Sorry