aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii <[email protected]>2009-03-28 12:27:52 +0000
committerEli Zaretskii <[email protected]>2009-03-28 12:27:52 +0000
commit7f94baf012ca987dbef3e981f826523f2e8e02ef (patch)
tree073e3c76b065eda753f74d1e2d46da3a4aeb2554
parent9628fed72164a10758c241c2b220f84668a50b14 (diff)
(shell-quote-wildcard-pattern): Doc fix.
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/files.el10
2 files changed, 10 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index d797e665d4..d5581dc646 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
+2009-03-28 Eli Zaretskii <[email protected]>
+
+ * files.el (shell-quote-wildcard-pattern): Doc fix.
+
2009-03-27 Eli Zaretskii <[email protected]>
* ls-lisp.el (ls-lisp-insert-directory): Allow for a trailing '/'
diff --git a/lisp/files.el b/lisp/files.el
index 589d267407..2ab2e88161 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -5254,12 +5254,14 @@ and `list-directory-verbose-switches'."
"Quote characters special to the shell in PATTERN, leave wildcards alone.
PATTERN is assumed to represent a file-name wildcard suitable for the
-underlying filesystem. For Unix and GNU/Linux, the characters from the
-set [ \\t\\n;<>&|()'\"#$] are quoted with a backslash; for DOS/Windows, all
+underlying filesystem. For Unix and GNU/Linux, each character from the
+set [ \\t\\n;<>&|()'\"#$] is quoted with a backslash; for DOS/Windows, all
the parts of the pattern which don't include wildcard characters are
quoted with double quotes.
-Existing quote characters in PATTERN are left alone, so you can pass
-PATTERN that already quotes some of the special characters."
+
+This function leaves alone existing quote characters (\\ on Unix and \"
+on Windows), so PATTERN can use them to quote wildcard characters that
+need to be passed verbatim to shell commands."
(save-match-data
(cond
((memq system-type '(ms-dos windows-nt cygwin))