summaryrefslogtreecommitdiff
path: root/lisp/find-dired.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>2002-03-08 09:35:44 +0000
committerRichard M. Stallman <rms@gnu.org>2002-03-08 09:35:44 +0000
commitff39e69ccd6fd617b14b05a60c2c98b6b3784b12 (patch)
tree72605ac0b096bb84ca7889fdaf13151424141dbf /lisp/find-dired.el
parent007776bcc68f6549071f8c738ce6263293f09ae8 (diff)
downloademacs-ff39e69ccd6fd617b14b05a60c2c98b6b3784b12.tar.gz
(find-name-dired): Use shell-quote-argument.
Diffstat (limited to 'lisp/find-dired.el')
-rw-r--r--lisp/find-dired.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/find-dired.el b/lisp/find-dired.el
index d07c983c1dc..4e86c792ab4 100644
--- a/lisp/find-dired.el
+++ b/lisp/find-dired.el
@@ -159,7 +159,7 @@ The command run (after changing into DIR) is
find . -name 'PATTERN' -ls"
(interactive
"DFind-name (directory): \nsFind-name (filename wildcard): ")
- (find-dired dir (concat "-name '" pattern "'")))
+ (find-dired dir (concat "-name '" (shell-quote-argument pattern) "'")))
;; This functionality suggested by
;; From: oblanc@watcgl.waterloo.edu (Olivier Blanc)