diff options
| author | Richard M. Stallman | 2002-03-03 00:34:32 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2002-03-03 00:34:32 +0000 |
| commit | a086a7fefda190820c5640c6c81c441371c7b4ff (patch) | |
| tree | ba0823d29dae23f34c124537d5eaea508da49569 | |
| parent | f40f9848b640d51d35bde015fd194d80d66802ce (diff) | |
| download | emacs-a086a7fefda190820c5640c6c81c441371c7b4ff.tar.gz emacs-a086a7fefda190820c5640c6c81c441371c7b4ff.zip | |
(find-grep-dired): Call shell-quote-argument. Specify the -e option.
| -rw-r--r-- | lisp/find-dired.el | 3 |
1 files changed, 2 insertions, 1 deletions
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." | |||
| 183 | ;; by FIFOs and devices. I'm not sure what's best to do | 183 | ;; by FIFOs and devices. I'm not sure what's best to do |
| 184 | ;; about symlinks, so as far as I know this is not wrong. | 184 | ;; about symlinks, so as far as I know this is not wrong. |
| 185 | (find-dired dir | 185 | (find-dired dir |
| 186 | (concat "-type f -exec grep " find-grep-options " " | 186 | (concat "-type f -exec grep " find-grep-options " -e " |
| 187 | (shell-quote-argument args) | ||
| 187 | args " {} \\\; "))) | 188 | args " {} \\\; "))) |
| 188 | 189 | ||
| 189 | (defun find-dired-filter (proc string) | 190 | (defun find-dired-filter (proc string) |