In my zsh script, I had a line
echo some text ================================
To my surprise, an error message was issued for this line:
zsh: =============================== not found
Experimenting from the command line, I found that the shell gets upset when there is an equal sign:
$ echo =z
zsh: z not found
But here, we have:
$ echo =echo
/usr/bin/echo
From this observation, it looks, as if
=XXX
would be interpreted like
$(which XXX)
However, I didn't find anything about this "substitution" in the zsh manpage. Where is this piece of magic described?
From the docs:
And here in more words