summaryrefslogtreecommitdiffstats
path: root/tests/comsub2.sub
blob: d60ae6a0e7380b3c037996741492f4ce111ac761 (plain)
1
2
3
4
5
6
7
8
qpath='\/tmp\/foo\/bar'

echo "$qpath"

# it's crazy that all three of these produce the same result
printf "%s\n" ${qpath//\\/}
printf "%s\n" ${qpath//"`printf '%s' \\`"/}
printf "%s\n" ${qpath//`printf '%s' "\\\\\\\\"`/}