[Top][All Lists]

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

[bug-grep] grep -i --color <TEXT> bug when TEXT is not all lowercase

From: Michael Durland
Subject: [bug-grep] grep -i --color <TEXT> bug when TEXT is not all lowercase
Date: Thu, 7 Apr 2005 10:30:11 -0700 (PDT)

I'm using grep version 2.5.1.  When passing an all uppercase (or
partial uppercase) string to grep -i --color, the matching text is not
highlighted in color.  When passing the same search string as all
lowercase, then the matching text is highlighted correctly.  I have
reproduced this on RedHat Linux 8, and Cygwin with grep version 2.5.
For example:
"grep -i --color TEXT file" does not highlight anything.
"grep -i --color text file" does highlight all case variations of text.
Both commands correctly return the right set of matching lines.  It is
only the --color option when combined with -i that has problems when
passed a string that has at least one uppercase letter.

Michael Durland

Do you Yahoo!? 
Take Yahoo! Mail with you! Get it on your mobile phone. 

reply via email to

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