[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
grep 2.5 --color bug
From: |
Brock, Don E |
Subject: |
grep 2.5 --color bug |
Date: |
Sat, 03 Jun 2006 00:47:30 -0400 |
I read an article at linux.com today about the new features in grep 2.5
so I played around with the --color option. I discovered that the
--color option doesn't print the color escape codes (even with
--color=always) if any characters of the pattern being searched for are
in upper case and if the -i option is used. This seems like a bug to
me.
Examples:
(searchfile contains "hello world")
# This prints the found pattern in color
grep -i --color=always 'hello world' searchfile
# This will NOT print the found pattern in color
grep -i --color=always 'Hello world' searchfile
Thanks,
Don Brock
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- grep 2.5 --color bug,
Brock, Don E <=