Save and open the attached file with emacs -Q. You will see: One $m is highlighted, the others and $i etc. aren't. "/tmp/$(basename" is highlighted.