From owner-svn-src-all@FreeBSD.ORG Tue Jan 3 16:23:49 2012 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 7F8801065670; Tue, 3 Jan 2012 16:23:49 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 5348A8FC17; Tue, 3 Jan 2012 16:23:49 +0000 (UTC) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [96.47.65.170]) by cyrus.watson.org (Postfix) with ESMTPSA id 0B08C46B0A; Tue, 3 Jan 2012 11:23:49 -0500 (EST) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 97026B95D; Tue, 3 Jan 2012 11:23:48 -0500 (EST) From: John Baldwin To: =?utf-8?q?G=C3=A1bor_K=C3=B6vesd=C3=A1n?= Date: Tue, 3 Jan 2012 09:29:30 -0500 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110714-p8; KDE/4.5.5; amd64; ; ) References: <201112311312.pBVDCBja064475@svn.freebsd.org> <20111231140027.GA3487@reks> <4EFF16E0.7000206@t-hosting.hu> In-Reply-To: <4EFF16E0.7000206@t-hosting.hu> MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <201201030929.30656.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Tue, 03 Jan 2012 11:23:48 -0500 (EST) Cc: Gleb Kurtsou , src-committers@freebsd.org, svn-src-stable@freebsd.org, svn-src-all@freebsd.org, svn-src-stable-9@freebsd.org, Gabor Kovesdan Subject: Re: svn commit: r229081 - stable/9/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, 03 Jan 2012 16:23:49 -0000 On Saturday, December 31, 2011 9:06:24 am G=C3=A1bor K=C3=B6vesd=C3=A1n wro= te: > On 2011.12.31. 15:00, Gleb Kurtsou wrote: > >> ${BINDIR}/grep ${BINDIR}/fgrep \ > >> > ${BINDIR}/grep ${BINDIR}/zgrep \ > >> > ${BINDIR}/grep ${BINDIR}/zegrep \ > >> > - ${BINDIR}/grep ${BINDIR}/zfgrep \ > >> > - ${BINDIR}/grep ${BINDIR}/xzgrep \ > >> > - ${BINDIR}/grep ${BINDIR}/xzegrep \ > >> > - ${BINDIR}/grep ${BINDIR}/xzfgrep \ > >> > - ${BINDIR}/grep ${BINDIR}/lzgrep \ > >> > - ${BINDIR}/grep ${BINDIR}/lzegrep \ > >> > - ${BINDIR}/grep ${BINDIR}/lzfgrep > >> > + ${BINDIR}/grep ${BINDIR}/zfgrep > > Is there a reason we need all this mess is the first place? 12 grep lin= ks=20 under > > /usr/bin. Why not to make zgrep handle all compression types. Tranparent > > compression handling in tar was a great success. > > > 1, xzgrep comes from archivers/xz so scripts may be using it > 2, the rest to follow the naming convention > 3, auto-detection is not always trivial Presumably the auto-detection is more trivial than that in tar that handles= =20 the combination of various archive formats and various compression formats.= I=20 would definitely prefer to have a single "smart" zgrep that DTRT. =2D-=20 John Baldwin