svn commit: r229081 - stable/9/usr.bin/grep
Doug Barton
dougb at FreeBSD.org
Tue Jan 3 19:07:53 UTC 2012
On 01/03/2012 06:29, John Baldwin wrote:
> On Saturday, December 31, 2011 9:06:24 am Gábor Kövesdán wrote:
>> 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 links
> 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
> the combination of various archive formats and various compression formats. I
> would definitely prefer to have a single "smart" zgrep that DTRT.
I vaguely recall raising this same issue after the initial commit to
HEAD, but just in case, a big +1 from me.
Doug
--
You can observe a lot just by watching. -- Yogi Berra
Breadth of IT experience, and depth of knowledge in the DNS.
Yours for the right price. :) http://SupersetSolutions.com/
More information about the svn-src-stable-9
mailing list