bug-grep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Run-time dynamic linking in grep


From: Reuben Thomas
Subject: Re: Run-time dynamic linking in grep
Date: Mon, 28 Feb 2011 21:26:24 +0000

On 28 February 2011 08:49, Paolo Bonzini <address@hidden> wrote:
> On 01/21/2011 08:27 PM, Reuben Thomas wrote:
>>
>> This is an interesting suggestion, not just because of performance
>> reasons, but because I was trying to interface at the library level,
>> while using a decompressor program directly would avoid having to do
>> API impedance matching.
>
> Right, and it would also be strictly more powerful.  For example, it could
> allow grepping in binary files such as .odt or .doc.
>
> I'd base the choice of a filter strictly on the extension.  Not using magic
> numbers avoids the problem of buffering stdin.

But it doesn't work with pipes, which was much of the motivation for
doing this in grep rather than in a revved-up zgrep wrapper.

-- 
http://rrt.sc3d.org



reply via email to

[Prev in Thread] Current Thread [Next in Thread]