Mercurial > emacs
changeset 73260:4dce8f520712
(ido-wide-find-dirs-or-files): Use shell-quote-argument.
author | Kim F. Storm <storm@cua.dk> |
---|---|
date | Fri, 06 Oct 2006 12:49:12 +0000 |
parents | 2bba5aa7a1a6 |
children | 5acfd0d8c45a |
files | lisp/ido.el |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/ido.el Fri Oct 06 11:05:07 2006 +0000 +++ b/lisp/ido.el Fri Oct 06 12:49:12 2006 +0000 @@ -3136,7 +3136,12 @@ (let ((filenames (split-string (shell-command-to-string - (concat "find " dir " -name \"" (if prefix "" "*") file "*\" -type " (if finddir "d" "f") " -print")))) + (concat "find " + (shell-quote-argument dir) + " -name " + (shell-quote-argument + (concat (if prefix "" "*") file "*")) + " -type " (if finddir "d" "f") " -print")))) filename d f res) (while filenames