[Bug 351008] egrep doesn't match the equivalence classes correctly