help-gnu-utils
[Top][All Lists]
Advanced

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

Re: Win32 grep fails with -oi options


From: Jonny
Subject: Re: Win32 grep fails with -oi options
Date: Tue, 26 Jul 2005 23:54:22 GMT
User-agent: Noworyta News Reader/2.9

I wrote:

> Version 2.5.1a of GNU grep for Win32 doesn't work when the -o (show
> matching part of line only) and -i (ignore case) options are specified
> together.
> 
> For example:
> 
> echo HELLO THERE|grep -oi "hello"
> 
> should return
> 
> HELLO
> 
> but it returns nothing.
> 
> I was told that this has been fixed in the CVS version.
> 
> Please could someone tell me how to checkout the CVS version so that I
> can (attempt to) build it.  Or, preferably, please point me to a Win32
> binary which has the fix included.

I got the nightly CVS snapshot from

http://www.dal-acm.ca/~taa/grep/grep-2.5.1-cvs.tar.gz

and compiled it using MinGW GCC (though I had to remove the reference to
S_ISSOCK on line 1167 of grep.c).

The problem is now solved.

Regards,
Jonny


reply via email to

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