[mdlug] grep bug?

Tony Bemus tony at bemushosting.com
Wed Apr 16 17:00:56 EDT 2008


I'm running Ubuntu 7.10 and i got the same results Robert did:
true && ( echo hello | grep --color=always -e ^ | hexdump -C | head -1;
echo hello | grep -i --color=always -e ^ | hexdump -C | head -1; )
00000000  68 65 6c 6c 6f 0a                                 |hello.|
00000000  1b 5b 30 31 3b 33 31 6d  1b 5b 30 30 6d 1b 5b 30
|.[01;31m.[00m.[0|




On Wed, 2008-04-16 at 16:52 -0400, Ein Bielaczyc wrote:

> On Wed, Apr 16, 2008 at 4:44 PM, Wojtak, Greg
> <GregWojtak at quickenloans.com> wrote:
> > This does not occur on RHEL 5.1.
> >
> >  [root at ql1mgt2 push]# grep -V
> >
> > grep (GNU grep) 2.5.1
> >
> >  [root at ql1mgt2 push]# rpm -q grep
> >  grep-2.5.1-54.2.el5
> 
> Same behavior on OpenSuse 10.2. Removing the '--color=always' option
> corrects the issue.
> 
> # rpm -q grep
> grep-2.5.1a-40
> 
> # grep -V
> grep (GNU grep) 2.5.1
> 
> 



More information about the mdlug mailing list