when I used the egrep tool in sys-apps/grep-2.5.3 with egrep -i, it still did a case-sensitive match. I downgrade it to 2.5.1a-r1, it works.
Please search for existing bugs before filing a new one. *** This bug has been marked as a duplicate of bug 238235 ***