I'm running the following command:
cat something | egrep "(abc|def)$"
On a server running Linux.
The same OS with kernel 2.6.18 gives the correct answer, while with 2.6.19 I get:
Illegal variable name.
Apparently the $ sign is causing the error, but the question is why is it behaving differently across kernels?