bug-grep
[Top][All Lists]
Advanced

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

Re: [bug-grep] 'grep -F -w' fails to find certain matches


From: Bob Proulx
Subject: Re: [bug-grep] 'grep -F -w' fails to find certain matches
Date: Fri, 11 Mar 2005 20:00:05 -0700
User-agent: Mutt/1.5.6+20040907i

Tim Waugh wrote:
> address@hidden wrote:
> > 'grep -F -w' misses matches if they are preceded by a
> > non-word match. I get this on Windows 2000 with two
> > different grep binaries and on Linux (Puppy Linux live
> > CD):
> > 
> > C:\>echo PATTERN7 PATTERN | grep -F -w -c "PATTERN"
> > 0
> > 
> > C:\>echo 7PATTERN PATTERN | grep -F -w -c "PATTERN"
> > 1
> >
> > Is this a bug?

It does look like it.  Thanks for reporting it.

> Both of these cases work fine with the Fedora Core patched grep
> 2.5.1-31.4.

I get the same results as the poster on RHEL3.0 with grep-2.5.1-24.1.

Bob

Attachment: signature.asc
Description: Digital signature


reply via email to

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