bzegrep behaviour not consistent with egrep?

James Long stable at museum.rain.com
Thu Oct 20 15:10:31 PDT 2005


> > > 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?

The patch appears to fix my problem.  Thank you!

Jim


ns : 15:00:10 /usr/src/gnu/usr.bin/grep# bzegrep "38436|41640" /var/log/maillog.0.bz2 | wc -l
     121
ns : 15:01:23 /usr/src/gnu/usr.bin/grep# bzcat /var/log/maillog.0.bz2 | egrep "38436|41640" | wc -l
     121





More information about the freebsd-stable mailing list