X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=0.5 required=5.0 	tests=AWL,BAYES_00,SARE_BAYES_6x6,SARE_BAYES_7x6,SARE_MSGID_LONG40,SPF_PASS
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
Date: Thu, 22 Oct 2009 12:27:27 +0200
Message-ID: <d922b6650910220327m2fda0b9fh38d86007f4447f6@mail.gmail.com>
Subject: grep -i --color does not always color
From: =?ISO-8859-1?Q?Morten_Kj=E6rulff?= <mortenkjarulff@gmail.com>
To: cygwin@cygwin.com
Content-Type: text/plain; charset=ISO-8859-1
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

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

