With grep 2.14 (and previous versions),
$ echo `seq 0 32` | env -u GREP_COLORS grep --color=always 30
gives in some terminals such as xterm (but *not* GNOME Terminal):
│[...] 25 26 27 28 293│
│0 31 32 │
instead of
│[...] 25 26 27 28 29 │
│30 31 32 │
The "30" is colored correctly, but not wrapped correctly. Similarly,
as shown in the following bug report:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=456943
$ echo "
1234" | grep --color=auto '[1-9]'
(80 spaces and 1234) displays nothing.
According to the bug report mentioned above, it is a bug in grep,
not in the terminals. Technical information is provided in this
bug report.
--
Vincent Lefèvre <[email protected]> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)