It's not possible to portably echo a backslash, use printf instead.