summaryrefslogtreecommitdiffstats
path: root/tests/018/sh-esc.tl
blob: 3466ee761afbcb4c6b3d1ccb0760e72c2222b167 (plain)
1
2
3
4
5
6
7
8
9
10
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()*~")