1qpath='\/tmp\/foo\/bar'
2
3echo "$qpath"
4
5# it's crazy that all three of these produce the same result
6printf "%s\n" ${qpath//\\/}
7printf "%s\n" ${qpath//"`printf '%s' \\`"/}
8printf "%s\n" ${qpath//`printf '%s' "\\\\\\\\"`/}
9