[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
grep: bug with -i --color
From: |
Egmont Koblinger |
Subject: |
grep: bug with -i --color |
Date: |
Fri, 22 Oct 2004 16:14:48 +0200 |
User-agent: |
Mutt/1.5.6+20040722i |
Hi,
When using both the -i and the --color options of grep 2.5.1, and the
pattern contains at least one uppercase letter, the output is not colored.
Example: (^^^^ means highlighted text)
$ grep --color=auto nobody /etc/passwd
nobody:x:99:99:Nobody:/:/bin/sh
^^^^^^
$ grep -i --color=auto nobody /etc/passwd
nobody:x:99:99:Nobody:/:/bin/sh
^^^^^^ ^^^^^^
$ grep --color=auto Nobody /etc/passwd
nobody:x:99:99:Nobody:/:/bin/sh
^^^^^^
$ grep -i --color=auto Nobody /etc/passwd
nobody:x:99:99:Nobody:/:/bin/sh
(nothing is highlighted this time)
bye,
Egmont
- grep: bug with -i --color,
Egmont Koblinger <=