From: Richard M. Stallman Date: Sun, 3 Mar 2002 00:34:32 +0000 (+0000) Subject: (find-grep-dired): Call shell-quote-argument. Specify the -e option. X-Git-Tag: ttn-vms-21-2-B4~16392 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a086a7fefda190820c5640c6c81c441371c7b4ff;p=emacs.git (find-grep-dired): Call shell-quote-argument. Specify the -e option. --- diff --git a/lisp/find-dired.el b/lisp/find-dired.el index 0b21c3c6370..68f076a8284 100644 --- a/lisp/find-dired.el +++ b/lisp/find-dired.el @@ -183,7 +183,8 @@ Thus ARG can also contain additional grep options." ;; by FIFOs and devices. I'm not sure what's best to do ;; about symlinks, so as far as I know this is not wrong. (find-dired dir - (concat "-type f -exec grep " find-grep-options " " + (concat "-type f -exec grep " find-grep-options " -e " + (shell-quote-argument args) args " {} \\\; "))) (defun find-dired-filter (proc string)