summaryrefslogtreecommitdiffstats
path: root/tests/comsub2.sub
diff options
context:
space:
mode:
Diffstat (limited to 'tests/comsub2.sub')
-rw-r--r--tests/comsub2.sub8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/comsub2.sub b/tests/comsub2.sub
new file mode 100644
index 0000000..d60ae6a
--- /dev/null
+++ b/tests/comsub2.sub
@@ -0,0 +1,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' "\\\\\\\\"`/}