diff options
| author | Kim F. Storm | 2006-10-06 12:49:12 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2006-10-06 12:49:12 +0000 |
| commit | ec579201eee79908000edc03b34731995400f9e4 (patch) | |
| tree | a7824a133ab6834e081cfeefe9fa0a8e4dc77ae2 | |
| parent | 5879ac68699f4268beffff69535c421f6d8aed0a (diff) | |
| download | emacs-ec579201eee79908000edc03b34731995400f9e4.tar.gz emacs-ec579201eee79908000edc03b34731995400f9e4.zip | |
(ido-wide-find-dirs-or-files): Use shell-quote-argument.
| -rw-r--r-- | lisp/ido.el | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lisp/ido.el b/lisp/ido.el index b68a4622ef8..d4ed85ea105 100644 --- a/lisp/ido.el +++ b/lisp/ido.el | |||
| @@ -3136,7 +3136,12 @@ for first matching file." | |||
| 3136 | (let ((filenames | 3136 | (let ((filenames |
| 3137 | (split-string | 3137 | (split-string |
| 3138 | (shell-command-to-string | 3138 | (shell-command-to-string |
| 3139 | (concat "find " dir " -name \"" (if prefix "" "*") file "*\" -type " (if finddir "d" "f") " -print")))) | 3139 | (concat "find " |
| 3140 | (shell-quote-argument dir) | ||
| 3141 | " -name " | ||
| 3142 | (shell-quote-argument | ||
| 3143 | (concat (if prefix "" "*") file "*")) | ||
| 3144 | " -type " (if finddir "d" "f") " -print")))) | ||
| 3140 | filename d f | 3145 | filename d f |
| 3141 | res) | 3146 | res) |
| 3142 | (while filenames | 3147 | (while filenames |