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   ebl...@redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to