bug-grep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

grep: erroneous highlighting


From: Norbert de Jonge
Subject: grep: erroneous highlighting
Date: Thu, 21 Mar 2013 17:11:16 +0100

Hi all,

See:
http://www.norbertdejonge.nl/misc/grep_2_12.png

In the above image, the first grep erroneously highlights "Tes" as
the second match. I recently ran into something like this while using
grep on PHP code and for a moment thought I'd made a typo.

Version information:
- GNU/Linux Mint 14
- GNU grep 2.12
- GNU bash 4.2.37(1)

It seems /etc/bash.bashrc sets "alias grep='grep --colour=auto'". The
dimensions of this particular xterm were set as part of "xterm -fg
black -bg white -geometry 80x18 -fa Monospace".

Obviously this has to do with the location of the last matching
character. Is this a known bug; are there any workarounds?

Yours sincerely,
Norbert de Jonge



reply via email to

[Prev in Thread] Current Thread [Next in Thread]