summaryrefslogtreecommitdiffstats
path: root/tests/018/sh-esc.tl
diff options
context:
space:
mode:
Diffstat (limited to 'tests/018/sh-esc.tl')
-rw-r--r--tests/018/sh-esc.tl11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/018/sh-esc.tl b/tests/018/sh-esc.tl
new file mode 100644
index 00000000..3466ee76
--- /dev/null
+++ b/tests/018/sh-esc.tl
@@ -0,0 +1,11 @@
+(load "../common")
+
+(mtest
+ (sh-esc "|&;<>()$`\\\"' \t\n*?[#~=%abc")
+ "\\|\\&\\;\\<\\>\\(\\)\\$\\`\\\\\\\"\\'\\ \\\t\\\n\\*\\?\\[\\#\\~=%abc"
+ (sh-esc-all "|&;<>()$`\\\"' \t\n*?[#~=%abc")
+ "\\|\\&\\;\\<\\>\\(\\)\\$\\`\\\\\\\"\\'\\ \\\t\\\n\\*\\?\\[\\#\\~\\=\\%abc"
+ (sh-esc-dq "$`\\\"\n'abc()*~")
+ "\\$\\`\\\\\\\"\\\n'abc()*~"
+ (sh-esc-sq "$`\\\"\n'abc()*~")
+ "$`\\\"\n'\\''abc()*~")