Could it be that the $ symbol is being treated as an identifier in one situation and not the other?

What happens if you type //join #12$C=mS^2$21 ?