From owner-svn-src-all@FreeBSD.ORG Tue Nov 29 00:17:07 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 60DA5106564A; Tue, 29 Nov 2011 00:17:07 +0000 (UTC) (envelope-from gabor@t-hosting.hu) Received: from server.mypc.hu (server.mypc.hu [87.229.73.95]) by mx1.freebsd.org (Postfix) with ESMTP id DE3B48FC17; Tue, 29 Nov 2011 00:17:06 +0000 (UTC) Received: from server.mypc.hu (localhost [127.0.0.1]) by server.mypc.hu (Postfix) with ESMTP id 133D014E66E3; Tue, 29 Nov 2011 00:58:32 +0100 (CET) X-Virus-Scanned: amavisd-new at server.mypc.hu Received: from server.mypc.hu ([127.0.0.1]) by server.mypc.hu (server.mypc.hu [127.0.0.1]) (amavisd-new, port 10024) with LMTP id RyWfc2thLE1q; Tue, 29 Nov 2011 00:58:30 +0100 (CET) Received: from [192.168.1.117] (catv-80-98-232-12.catv.broadband.hu [80.98.232.12]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by server.mypc.hu (Postfix) with ESMTPSA id 160BC14E66E0; Tue, 29 Nov 2011 00:58:30 +0100 (CET) Message-ID: <4ED42023.3080301@t-hosting.hu> Date: Tue, 29 Nov 2011 00:58:27 +0100 From: =?UTF-8?B?R8OhYm9yIEvDtnZlc2TDoW4=?= User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0a2) Gecko/20111122 Thunderbird/10.0a2 MIME-Version: 1.0 To: d@delphij.net References: <201111282016.pASKGtcf007383@svn.freebsd.org> <4ED3ED83.9000001@delphij.net> In-Reply-To: <4ED3ED83.9000001@delphij.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r228099 - head/usr.bin/grep X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Nov 2011 00:17:07 -0000 On 2011.11.28. 21:22, Xin LI wrote: > This is useful but could be confusing since xzgrep's behavior could be > different from zgrep. What do you refer to exactly? That zgrep is GNU grep and xzgrep is BSD grep? I acknowledge that this is not documented but xzgrep is a non-standard addition so personally think it is acceptable. Someone called my attention to the archivers/xz port that had a wrapper script for grep, callled xzgrep. This was installed with the port but is not installed in base any more so I got the suggestion to implement it in BSD grep and I think it is a better idea than a wrapper script and it was easy to support. So with this change, this functionality can be used again w/o installing the port although it is not documented. > > Another topic would be ObsoleteFiles.inc (or > OptionalObsoleteFiles.inc) needs to be updated for this as well. I don't think they should be updated. From now on, xzgrep and such are always created and they always point to BSD grep, which can be /usr/bin/grep or /usr/bin/bsdgrep depending on WITH_BSD_GREP. But they always exist and point to one or another. I cannot think of any case when they should be removed. Gabor