[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug report] No color in grep (grep (GNU grep) 2.5.1) when used with -i
From: |
Sylvain Desodt |
Subject: |
[Bug report] No color in grep (grep (GNU grep) 2.5.1) when used with -i |
Date: |
Mon, 17 May 2010 16:11:13 +0100 |
Hello everyone,
I just had a problem with grep : the color does not seem to work when
performing case-insensitive searchs.
Here is a simple piece of code to see the problem :
% echo -ne "a\nb\c\ndef\nDEF\ng\nh\n" >! grep_test # creating a test file
% grep --color=always E grep_test # finds the right line and colors the pattern
% grep --color=always E -i grep_test # finds the right lines but no
color for the patterns
I found other people with the same problem (
http://superuser.com/questions/73261/grep-colorauto-with-i-option-disables-the-matching-text-color-why
) but I don't know if you are aware of the problem. Sorry for the
inconvenience if you already knew about it.
Some more information about my configuration/system :
% grep -V
grep (GNU grep) 2.5.1
Copyright 1988, 1992-1999, 2000, 2001 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
% echo $SHELL
/usr/bin/zsh
% echo $ZSH_VERSION
4.2.0
% echo $TERM # it's actually a gnome-terminal
xterm
% uname -a
Linux lonlnx19 2.6.5-7.244-smp #1 SMP Mon Dec 12 18:32:25 UTC 2005
x86_64 x86_64 x86_64 GNU/Linux
% echo $LANG
# empty
Thanks a lot
Bye
Sylvain Desodt
- [Bug report] No color in grep (grep (GNU grep) 2.5.1) when used with -i,
Sylvain Desodt <=