Note that whether `echo '\\'` (the only one where `echo` is being passed \\ as argument) outputs one or too backslashes depends on the `echo` implementations and in the case of bash's builtin `echo` whether the `xpg_echo` option has been enabled or not (at runtime or build time).
– Stéphane ChazelasSep 02 '22 at 06:16