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/