> I have to pre-check for an empty set before passing it to grep: > ... > Workaround:
You're right that the empty pattern matches every line, since every line has an empty string in it somewhere. This is considered to be a feature of grep, not a bug. As you have a workaround I'm closing the bug report.