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

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

Re: grep --only-matching --ignore-case


From: Stepan Kasal
Subject: Re: grep --only-matching --ignore-case
Date: Wed, 5 Feb 2003 11:14:39 +0100
User-agent: Mutt/1.2.5.1i

Hello, 

On Wed, Feb 05, 2003 at 10:54:21AM +0200, Jori Mantysalo wrote:
> ... --ignore-case and --only-matching doesn't seem to work together.

there is (partial) fix for this bug.  I'm attaching it to this mail.

(Grep CVS and RedHat rawhide both contain a patch, but this one is
better.  I'll put it to the CVS ASAP.)

The patch is not perfect, though:
take care to specify the case insensitive patterns with lowercase
letters only, like

        grep --ignore-case --only-matching '<title>.*</title>'

not:    grep --ignore-case --only-matching '<TITLE>.*</TITLE>'

The ulimate fix for this problem is to change grep to make use of the
new regex library from current GNU libc, but it presents some work to
do it right.  Thus I'm sending you this temporary solution.

Thank you very much for your bug report.

Stepan Kasal

Attachment: grep-2.5.1-oi-plus-sk.patch
Description: Text document


reply via email to

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