From 982e6f0b7e22be9729c063e613a5df8d0cda6ffc Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Mon, 11 Nov 2013 16:30:38 +0900 Subject: [PATCH] update my-rgrep-grep command --- emacs.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/emacs.el b/emacs.el index d9012e1..a73dbbd 100644 --- a/emacs.el +++ b/emacs.el @@ -1963,7 +1963,8 @@ if arg given, use that eshell buffer, otherwise make new eshell buffer." (format (concat "find . " "-path '*/.git' -prune -o " "-path '*/.svn' -prune -o " - "-type f -exec grep -nH -e '%s' {} +") + "-type f -print0 | " + "xargs -0 -e grep -nH -e '%s'") word) 'grep-mode))