Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Jan 2012 09:29:30 -0500
From:      John Baldwin <jhb@freebsd.org>
To:        =?utf-8?q?G=C3=A1bor_K=C3=B6vesd=C3=A1n?= <gabor@t-hosting.hu>
Cc:        Gleb Kurtsou <gleb.kurtsou@gmail.com>, src-committers@freebsd.org, svn-src-stable@freebsd.org, svn-src-all@freebsd.org, svn-src-stable-9@freebsd.org, Gabor Kovesdan <gabor@freebsd.org>
Subject:   Re: svn commit: r229081 - stable/9/usr.bin/grep
Message-ID:  <201201030929.30656.jhb@freebsd.org>
In-Reply-To: <4EFF16E0.7000206@t-hosting.hu>
References:  <201112311312.pBVDCBja064475@svn.freebsd.org> <20111231140027.GA3487@reks> <4EFF16E0.7000206@t-hosting.hu>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201201030929.30656.jhb>