This is confounding. I need an explanation of the factor at work here which I'm apparently missing.
echo \\z
yields:
\z
echo \\\z
also yields:
\z
Ok fine (presumably because of the way backslashes in command line escaping are discarded even if the character being escaped would not have been treated specially anyway).
But
echo `echo \\z`
yields:
z
whereas
echo `echo \\\z`
yields:
\z
So, both command substitutions yield \z
(when their command runs outside of a command substitution), but yet when run as command substitutions, when you echo
the result of one of them, it produces a different result to echo
ing the result of the other.
WTF?