[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #12995] grep with --color and -i causes color match not to be displ
From: |
Benno Schulenberg |
Subject: |
[bug #12995] grep with --color and -i causes color match not to be displayed |
Date: |
Fri, 12 Jan 2007 18:24:45 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.9) Gecko/20061226 Firefox/1.5.0.9 |
Follow-up Comment #3, bug #12995 (project grep):
> CONCLUSION: The bug affects not only highlighting,
> but also the --only-matching option.
This seems to be fixed in CVS. At least, I cannot reproduce your results
with grep from CVS, nor on Ubuntu Edgy, nor on a current Gentoo installation.
Your Knoppix is somewhat old; please retry with a later version.
echo "a A a A" | grep -o a
echo "a A a A" | grep -io a
echo "a A a A" | grep -o "[aA]"
echo "a A a A" | LC_ALL="en_US.utf8" grep -io a
Only with an unpatched grep-2.5.1a can I reproduce the non-matching
behaviour; but then also the setting of LC_ALL="en_US.utf8" does not mask the
bug.
(In future: do not add to bugs that look similar, but create a new bug
instead. Leave it to the maintainers to mark bugs as duplicates where
necessary.)
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?12995>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/