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.