Zsh backslash madness?
<p>Zsh seems to do some weird backslashing when you try to <code>echo</code> a bunch of backslashes. I cannot seem to figure out a very clear pattern to this. Any reasons for this madness? Of course, if I actually wanted to use backslashes properly, then I'd use proper quoting etc, but why does this happen in the first place?</p>

<p>Here's a small example to show the same:</p>

<pre><code>$ echo \\
\
$ echo \\ \\
\ \
$ echo \\ \\ \\
\ \ \
$ echo \\ \\ \\ \\
\ \ \ \
$ echo \\\\ \\ \\
\ \ \
$ echo \\\\\\ \\
\\ \
$ echo \\\\\\\\
\\
</code></pre>

<p>I initially independently discovered this a while ago, but was reminded of it by <a href="https://twitter.com/ebeip90/status/771542971070058497" rel="nofollow">this tweet</a> by Zach Riggle. </p>