[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
egrep (GNU grep) 2.5.1 --color bug with -i
From: |
Chris Findlay |
Subject: |
egrep (GNU grep) 2.5.1 --color bug with -i |
Date: |
Tue, 4 Dec 2007 08:47:40 +1100 |
(Under Cygwin)
When using grep --color, it correctly highlights the matched text, but when
using it also with -i, it only highlights matching text that also matches the
case, even though it displays matches for any case.
e.g.
if the output of `egrep -i a` or `egrep -i A` both produce the lines:
xyza
123A
the addition of --colour to these should (I'd expect) highlight both a and A,
but instead only highlights one - namely the one that is the same case as the
entered arg.
In other words, when -i is used, the match is case insensitive as expected, but
the highlighting is not.
J.Chris Findlay
Senior Software Engineer
- Product Development Division
MYOB NZ Ltd
PO Box 12940
Level 1, MYOB House, Building A,
The Millennium Centre
602 Great South Rd, Ellerslie
Auckland
Tel: +64 9 925 3579
Fax: +64 9 925 3501
address@hidden
www.myob.co.nz
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- egrep (GNU grep) 2.5.1 --color bug with -i,
Chris Findlay <=