[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-gnu-utils] grep (GNU grep) 2.4.2 bug report

From: Alain Magloire
Subject: Re: [Bug-gnu-utils] grep (GNU grep) 2.4.2 bug report
Date: Tue, 26 Sep 2000 13:48:00 -0400 (EDT)


> > I can not reproduce it.
> Sorry, I should have provided more information.
> $uname -rsm
> Linux 2.2.14-5.0 i586
> $grep -V
> grep (GNU grep) 2.4.2
> $rpm -q grep
> grep-2.4.2-1mdk
> I have tried this on two different machines with two different versions
> of Linux (Redhat 6.2 and Mandrake 7.1) and I get the same results.
> Another example:
> $echo D | grep '[c-d]'
> D
> $echo D | grep '[d-e]'
> It may be a Linux and/or Mandrake specific problem as it is an *mdk rpm.
> I hope this helps.

I do not have a Mandrake, but could test on Linux box Redhat-6.0(1)

# uname -rsm
Linux 2.2.5-15 i586
# /bin/echo D | grep [c-d]
# /bin/echo D | grep -i [c-d]
# /bin/echo D | grep  [d-e]
# /bin/echo D | grep  -i [d-e]

Propably the simplest thing to do is elimate some variables
by doing the compilation/installation from scratch, it should
take 5 minutes of your time:

wget ftp://ftp.gnu.org/gnu/grep/grep-2.4.2.tar.gz
gzip -dc grep-2.4.2.tar.gz |tar xvf -
cd grep-2.4.2
./configure  --prefix=/path/to/mygrep
make check
make install
/bin/echo D | /path/to/bin/mygre/bin/grep [c-d]

If this failed, than you can rule out a bad distribution
and we'll have to look at the libc or maybe the locale (LANG)
etc ...

Again, I'm not able to reproduce this in my environment.
Checking, if you type "which grep" , you are indeed running
GNU grep-2.4.2 not some other grep in you PATH ?


reply via email to

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