Btw, I have mostly completed a draft answer to
that question, fully explaining what is going on with the "Bareword not allowed" errors, and also explaining exactly what the shell is doing with the original commands, i.e., explaining what the
rename
command actually sees.