[Top][All Lists]

[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: Thomas Bushnell, BSG
Subject: Re: zgrep -<NUM> doesn't work if <NUM> is two digits or greater
Date: Mon, 6 Aug 2012 15:36:17 -0700

eww. I just looked at the code. I don't blame you. :)

On Mon, Aug 6, 2012 at 3:35 PM, Eric Blake <address@hidden> wrote:

> 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

reply via email to

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