% cat temp $$$ hello1 $$ hello2 hello3 ## hello4 hello5 $$$ % cat temp | grep \"$$$\" Illegal variable name. % cat temp | grep \"\\$\\$\\$\" Variable name
Same issue with this command
complete -W "\`grep -oE '^[a-zA-Z0-9_.-]+:([^=]|$)' Makefile \`"
Illegal variable name.