GNU bug report logs - #28102
Bug when using the --color option

Previous Next

Package: grep;

Reported by: Jason P Thurman <jason.thurman <at> gm.com>

Date: Tue, 15 Aug 2017 19:53:02 UTC

Severity: normal

Tags: moreinfo

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 28102 <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: josef radinger <cheese <at> nosuchhost.net>
Cc: Jason P Thurman <jason.thurman <at> gm.com>, 28102 <at> debbugs.gnu.org
Subject: Re: bug#28102: additional examples
Date: Sat, 2 Nov 2019 09:22:46 -0700
On 11/2/19 6:04 AM, josef radinger wrote:
> 3 examples:
> 
> *) grepping for X with in a wide enough xterm
> *) a problematic xterm:
> **) grepping without color -> correct
> **) grepping with color -> missing characters from the result
> 
> pasteing the result shows that there "is" no X in the result.

Surely this is a bug in xterm, not in grep. Try this:

ps auxww | grep --color=always X >foo
cat foo

If you still see the problem, look at foo this way:

od -cx foo

and see what color-change commands 'grep' is issuing.




This bug report was last modified 5 years and 201 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.