On Tue, May 23, 2006 at 10:14:49AM +0200, JL Lacroix wrote:
> Package: grep
> Version: 2.5.1.ds1-4
> 
> The color highlight does not behave consistently.
> 
> 
> $ echo hello Linux | grep --color -i 'l'
> hello Linux
>  ^^  ^
> --> match and highlight ok.
> 
> 
> $ echo hello Linux | grep --color -i 'L'
> hello Linux
> 
> --> match ok but no highlight.
> 
> Possible workaround by using option -F
> $ echo hello Linux | grep --color -i -F 'L'
> hello Linux
>  ^^  ^
> --> match and highlight ok.
> 
> Debian  3.1
> Kernel  2.4.27
> Libc6   2.3.2.ds1-22sarge3
I think this is bug #226397, known and fixed.

http://bugs.debian.org/226397
grep: -i --color will not color matches when pattern contains uppercase

Could you test with grep 2.5.1.ds2-2 or later?

Thanks
Justin


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to