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