When -i and --color are used together and the pattern contains a capital letter, the output itself is correct, but not colored correctly. Reproducible: Always Steps to Reproduce: $ unset GREP_COLOR # reset to default $ unset GREP_COLORS # reset to default $ export LANG=C $ echo a |grep --color=always -i a a ---> RED :) $ echo a |grep --color=always -i A a ---> NO-COLOR :( $ echo A |grep --color=always -i A A ---> NO-COLOR :( This bug was: - present in 2.5.1a-r1, - not present in 2.5.3-r1, - but is present again in 2.5.4 and 2.5.4-r1 Seems like an upstream/debian-patch issue, but I am not very sure.
Setting also LC_ALL=C is sometimes required to reproduce this bug.
seems to be fixed for real with grep-2.6