Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Oct 2005 15:10:23 -0700
From:      James Long <stable@museum.rain.com>
To:        freebsd-stable@freebsd.org
Cc:        Jung-uk Kim <jkim@freebsd.org>
Subject:   Re: bzegrep behaviour not consistent with egrep?
Message-ID:  <20051020221023.GA10906@ns.museum.rain.com>
In-Reply-To: <200510201711.49382.jkim@FreeBSD.org>
References:  <20051020194725.GA10376@ns.museum.rain.com> <20051020205704.GC4000@holestein.holy.cow> <200510201711.49382.jkim@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
> > > 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






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051020221023.GA10906>