bug-gzip
[Top][All Lists]
Advanced

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

Re: zgrep -<NUM> doesn't work if <NUM> is two digits or greater


From: Eric Blake
Subject: Re: zgrep -<NUM> doesn't work if <NUM> is two digits or greater
Date: Mon, 06 Aug 2012 16:35:00 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120717 Thunderbird/14.0

On 08/06/2012 04:26 PM, Thomas Bushnell, BSG wrote:
> So I think the answer is already there: *none *of the options are gzip
> options, *all *of the options are grep options.
> 
> Is the bug that zgrep is using the same parsing code as gzip, then?

No, the bug is that while 'gzip' and 'grep' are C programs, 'zgrep' is a
shell script, and the option parsing within that shell script has not
yet been tweaked to correctly parse options in the same way that 'grep'
would.  You have found a valid bug, and hopefully someone will take the
time to revisit the shell script parser in zgrep (I unfortunately
couldn't unravel it in the 2 minutes that I spent on the problem, and
currently have more pressing matters competing for my attention, so
hopefully someone else can step in and help).

-- 
Eric Blake   address@hidden    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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