summaryrefslogtreecommitdiff
path: root/tests/misc
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2015-11-03 10:13:11 +0000
committerPádraig Brady <P@draigBrady.com>2015-11-04 23:30:15 +0000
commit7549be4af7e8ac9a088927c35a011da835968b9f (patch)
tree74d20051c2ead5258be580a9233f9fd6b8f66f59 /tests/misc
parented2326ac367a77b1d88493e96ccebdd36f596cdb (diff)
downloadcoreutils-7549be4af7e8ac9a088927c35a011da835968b9f.tar.xz
ls: document and test new shell-escape quoting
* doc/coreutils.texi (ls invocation): Describe the new 'shell-escape' and 'shell-escape-always' quoting options. * src/ls.c (usage): Mention the new quoting options. * tests/misc/ls-misc.pl: Add a test for 'shell-escape'
Diffstat (limited to 'tests/misc')
-rwxr-xr-xtests/misc/ls-misc.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/misc/ls-misc.pl b/tests/misc/ls-misc.pl
index 007e25787..8b97c50f0 100755
--- a/tests/misc/ls-misc.pl
+++ b/tests/misc/ls-misc.pl
@@ -136,6 +136,7 @@ my @Tests =
['q-qs-lit', '--quoting=literal', $q_bell, {OUT => "q\a\n"}],
['q-qs-sh', '--quoting=shell', $q_bell, {OUT => "q\a\n"}],
['q-qs-sh-a', '--quoting=shell-always', $q_bell, {OUT => "'q\a'\n"}],
+ ['q-qs-sh-e', '--quoting=shell-escape', $q_bell, {OUT => "'q'\$'\\a'\n"}],
['q-qs-c', '--quoting=c', $q_bell, {OUT => "\"q\\a\"\n"}],
['q-qs-esc', '--quoting=escape', $q_bell, {OUT => "q\\a\n"}],
['q-qs-c-1', '--quoting=c',