The bug is apparently in /bin/sh (i.e. dash) builtin 'echo'.
Try this with bash:
mg@localhost:~ $ X="x\\cz" mg@localhost:~ $ echo "$X" x\cz
now the same with dash:
$ X="x\\cz" $ echo "$X" x$
and one possible fix:
$ /bin/echo "$X" x\cz
The bug is apparently in /bin/sh (i.e. dash) builtin 'echo'.
Try this with bash:
mg@localhost:~ $ X="x\\cz"
mg@localhost:~ $ echo "$X"
x\cz
now the same with dash:
$ X="x\\cz"
$ echo "$X"
x$
and one possible fix:
$ /bin/echo "$X"
x\cz