bzegrep behaviour not consistent with egrep?
Jung-uk Kim
jkim at FreeBSD.org
Thu Oct 20 14:12:09 PDT 2005
On Thursday 20 October 2005 04:57 pm, Parv wrote:
> in message <20051020194725.GA10376 at ns.museum.rain.com>,
> wrote James Long thusly...
>
> > Should these two commands produce identical output?
> >
> > $ bzegrep "38436|41640" /var/log/maillog.0.bz2 | wc -l
> > 0
> > $ bzcat /var/log/maillog.0.bz2 | egrep "38436|41640" | wc -l
> > 121
Can you try the patch for src/gnu/usr.bin/grep/grep.c?
> And more fun, try also "egrep -J| wc", which is similar to the 2d
> case above.
Can you elaborate the fun, please?
Thanks,
JK
> Seems like the first "e" in "bzegrep" is erroneous.
> - Parv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: grep.diff
Type: text/x-diff
Size: 894 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20051020/c687fe34/grep.bin
More information about the freebsd-stable
mailing list