Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Jul 2008 04:50:06 GMT
From:      Ighighi <ighighi@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   bin/125325: Annoying grep(1) bug
Message-ID:  <200807060450.m664o6PJ045077@www.freebsd.org>
Resent-Message-ID: <200807060500.m66502vu012695@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         125325
>Category:       bin
>Synopsis:       Annoying grep(1) bug
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jul 06 05:00:02 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Ighighi
>Release:        6.3-STABLE (RELENG_6)
>Organization:
>Environment:
6.3-STABLE FreeBSD 6.3-STABLE #0: Fri Jul  4 21:56:00 VET 2008
>Description:
GNU grep(1) -color has an annoying bug. Sometimes it doesn't colorize the relevant
string.

Old-school tty hackers: I value my vision ;-)
>How-To-Repeat:
$ env -i /usr/bin/grep --colour=always :0: /etc/passwd
root:*:0:0:Charlie &:/root:/usr/local/bin/bash
toor:*:0:0:Bourne-again Superuser:/root:

The entire ":0:0:" should be colorized.
>Fix:
GNU grep fixed it some time ago.

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200807060450.m664o6PJ045077>