diff options
| author | Chong Yidong | 2008-02-25 17:42:13 +0000 |
|---|---|---|
| committer | Chong Yidong | 2008-02-25 17:42:13 +0000 |
| commit | d6d61574551949db41692244863d457482d3dc61 (patch) | |
| tree | f3f6d06ac2f62830f5d282167d7032e6c0f772fa | |
| parent | 1a5f62980a76693c492e017af43cd08b5ad721f5 (diff) | |
| download | emacs-d6d61574551949db41692244863d457482d3dc61.tar.gz emacs-d6d61574551949db41692244863d457482d3dc61.zip | |
(shell-quote-wildcard-pattern): Quote ' and " as well.
| -rw-r--r-- | lisp/files.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/files.el b/lisp/files.el index 908bc95356b..d1b8cd2f30e 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -4869,7 +4869,7 @@ and `list-directory-verbose-switches'." | |||
| 4869 | 4869 | ||
| 4870 | PATTERN is assumed to represent a file-name wildcard suitable for the | 4870 | PATTERN is assumed to represent a file-name wildcard suitable for the |
| 4871 | underlying filesystem. For Unix and GNU/Linux, the characters from the | 4871 | underlying filesystem. For Unix and GNU/Linux, the characters from the |
| 4872 | set [ \\t\\n;<>&|()#$] are quoted with a backslash; for DOS/Windows, all | 4872 | set [ \\t\\n;<>&|()'\"#$] are quoted with a backslash; for DOS/Windows, all |
| 4873 | the parts of the pattern which don't include wildcard characters are | 4873 | the parts of the pattern which don't include wildcard characters are |
| 4874 | quoted with double quotes. | 4874 | quoted with double quotes. |
| 4875 | Existing quote characters in PATTERN are left alone, so you can pass | 4875 | Existing quote characters in PATTERN are left alone, so you can pass |
| @@ -4901,7 +4901,7 @@ PATTERN that already quotes some of the special characters." | |||
| 4901 | (concat result (substring pattern beg) "\"")))) | 4901 | (concat result (substring pattern beg) "\"")))) |
| 4902 | (t | 4902 | (t |
| 4903 | (let ((beg 0)) | 4903 | (let ((beg 0)) |
| 4904 | (while (string-match "[ \t\n;<>&|()#$]" pattern beg) | 4904 | (while (string-match "[ \t\n;<>&|()'\"#$]" pattern beg) |
| 4905 | (setq pattern | 4905 | (setq pattern |
| 4906 | (concat (substring pattern 0 (match-beginning 0)) | 4906 | (concat (substring pattern 0 (match-beginning 0)) |
| 4907 | "\\" | 4907 | "\\" |