This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

grep -i --color does not always color


Hi,

Is this an error, or have I misunderstod something?

/morten

$ echo ABCabc|grep --color=auto B
ABCabc <<< B is red

$ echo ABCabc|grep --color=auto b
ABCabc <<< b is red

$ echo ABCabc|grep -i --color=auto b
ABCabc <<< B and b is red

$ echo ABCabc|grep -i --color=auto B
ABCabc <<< nothing is red ???

$ echo ABCabc|grep -i --color=always b|od
0000000 015501 030133 035461 030463 015555 045533 015502 066533
0000020 055433 041513 015541 030133 035461 030463 015555 045533
0000040 015542 066533 055433 061513 000012
0000051

$ echo ABCabc|grep -i --color=always B|od
0000000 041101 060503 061542 000012
0000007

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]