The issue described in this report isnt a bug: $egrep and ${egrep} are the same. The variable is set indirectly by the code that supports the '-p' option (which sets a variable for everything in cmdlist)
(However, it seems to me that not every cmd in cmdlist is always invoked as ${cmd} - something to investigate)