1 2 3 4 5 6
x='\\\\' printf Nothing:'%s\n' ${x#'\\\\'} printf Nothing:'%s\n' "${x#'\\\\'}" printf Nothing:'%s\n' ${x#"\\\\\\\\"} printf Nothing:'%s\n' "${x#"\\\\\\\\"}" echo Ok:$?