changeset 24623:a79624ba3e74

(grep-compute-defaults): If xargs -e isn't supported, use find -exec.
author Karl Heuer <kwzh@gnu.org>
date Mon, 26 Apr 1999 04:49:42 +0000
parents 787f4cefd148
children 07ae57ea2a18
files lisp/progmodes/compile.el
diffstat 1 files changed, 7 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/progmodes/compile.el	Mon Apr 26 04:33:56 1999 +0000
+++ b/lisp/progmodes/compile.el	Mon Apr 26 04:49:42 1999 +0000
@@ -560,9 +560,13 @@
 	  (format "%s -n " grep-program)))
   (unless grep-find-use-xargs
     (setq grep-find-use-xargs
-	  (if (equal (call-process "find" nil nil nil
-				   null-device "-print0")
-		     0)
+	  (if (and
+               (equal (call-process "find" nil nil nil
+                                    null-device "-print0")
+                      0)
+               (equal (call-process "xargs" nil nil nil
+                                    "-0" "-e" "echo")
+		     0))
 	      'gnu)))
   (setq grep-find-command
 	(cond ((eq grep-find-use-xargs 'gnu)