I can confirm this bug, however it is not color-related. You get the same behaviour when you pass --color=never.
The following command correctly matches only the first line of input: echo -e "aBc\naBC" | grep "aB[[:lower:]]" That command _should_ be equivalent in this situation to the original but for some reason is not affected by this issue. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/737481 Title: grep --color prints line but doesn't color it -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
