bug-grep
[Top][All Lists]
Advanced

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

incorrect output with color and wrapping


From: Vincent Lefevre
Subject: incorrect output with color and wrapping
Date: Tue, 16 Apr 2013 15:37:04 +0200
User-agent: Mutt/1.5.21-6304-vl-r59709 (2013-04-11)

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 <address@hidden> - 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)



reply via email to

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