delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/11/24/04:44:56

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <20091123180004.GA2220@KCJs-Computer>
References: <6dbd17a60911230751o68e4c6e6p47c9cc76c010be2b AT mail DOT gmail DOT com> <d922b6650911230835k745322c8k63769cc141c5b8c9 AT mail DOT gmail DOT com> <20091123180004 DOT GA2220 AT KCJs-Computer>
Date: Tue, 24 Nov 2009 20:44:42 +1100
Message-ID: <7abf96460911240144g102c8f98o817294228fa021cd@mail.gmail.com>
Subject: Re: grep --color=auto with -i option disables the matching text color
From: Chip Panarchy <forumanarchy AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

I would recommend using the completed port of grep (& ls) made for Windows.

http://utools.com/msls.htm

On Tue, Nov 24, 2009 at 5:00 AM, Gary Johnson <garyjohn AT spocom DOT com> wrote:
> On 2009-11-23, Morten Kj=E6rulff wrote:
>
>> On Mon, Nov 23, 2009 at 4:51 PM, Alan Fay <emptyset AT gmail DOT com> wrote:
>> > Howdy!
>> >
>> > I was trying to enable colors on the matching text for grep, and can't
>> > get the formatting to work with the matching text.
>> >
>> > # Partial contents of .zshenv
>> > export GREP_OPTIONS=3D"--color=3Dauto"
>> > export GREP_COLORS=3D'mt=3D1;34'
>> >
>> > # Problem command, no matching text (mt) appearing bold/blue, run in a
>> > C# solution:
>> > $ grep -R -n -i -e "functionFoo\(" --include=3D*.cs --exclude-dir=3DLo=
gs *
>> >
>> > # Command that works and highlights matching text, note that -i option=
 disabled
>> > $ grep -R -n -e "functionFoo\(" --include=3D*.cs --exclude-dir=3DLogs *
>> >
>> > My superuser inquiry:
>> > http://superuser.com/questions/73261/grep-colorauto-with-i-option-disa=
bles-the-matching-text-color-why
>> >
>> > This problem was found with the following program/platform versions:
>> >
>> > $ uname -a
>> > CYGWIN_NT-6.0-WOW64 *** 1.5.25(0.156/4/2) 2008-06-12 19:34 i686 Cygwin
>> >
>> > $ grep --version
>> > GNU grep 2.5.3
>> >
>> > $ zsh --version
>> > zsh 4.3.9 (i686-pc-cygwin)
>> >
>> > Windows Vista Business
>> > Service Pack 2
>> >
>> > Feel free to email me with anything that's missing. =A0I'm not sure if
>> > this is a bug with Cygwin on Vista or perhaps grep. =A0I didn't find
>> > much past the man pages on google with respect to grep colorization
>> > (on any platform).
>
>> could be the same as "my" problem:
>> http://cygwin.com/ml/cygwin/2009-10/msg00548.html
>
> This appears to be a grep problem and not a Cygwin problem as it
> fails for me using grep 2.5.4 on a Red Hat Linux system: =A0Matches
> are not colored if the -i option is used and the pattern contains
> any upper-case letters.
>
> You might check the grep project page at
> http://www.gnu.org/software/grep/. =A0I didn't see it among the
> reported bugs. =A0If you don't see it there, either, go ahead and
> report it.
>
> Regards,
> Gary
>
>
>
> --
> Problem reports: =A0 =A0 =A0 http://cygwin.com/problems.html
> FAQ: =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 http://cygwin.com/faq/
> Documentation: =A0 =A0 =A0 =A0 http://cygwin.com/docs.html
> Unsubscribe info: =A0 =A0 =A0http://cygwin.com/ml/#unsubscribe-simple
>
>

--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019