bug-gnu-utils
[Top][All Lists]
Advanced

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

grep-2.5e: --color not working with -i


From: Theo Nolte
Subject: grep-2.5e: --color not working with -i
Date: Thu, 22 Mar 2001 23:08:15 +0100
User-agent: Mutt/1.2.5i

There seems to be a problem with the new --color option of grep 2.5e.
This option does not work together with the "-i" (ignore-case) option.

Example without -i: --color works correctly

  $ echo hello|grep --color hello|od -c
  0000000 033   [   3   1   ;   5   m   h   e   l   l   o 033   [   0   0
  0000020   m  \n

Example with -i: grep matches input correctly but does not hilite:

  $ echo HELLO|grep -i --color hello|od -c
  0000000   H   E   L   L   O  \n


Regards, Theo



reply via email to

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