diff options
| author | Karl Heuer | 1999-04-26 04:49:42 +0000 |
|---|---|---|
| committer | Karl Heuer | 1999-04-26 04:49:42 +0000 |
| commit | ac6b7d78589abd2551131431a95e6532a710aab5 (patch) | |
| tree | f59d1a06f2f3be8c47f9fece7b8060e53f61093d | |
| parent | 81f5ed32addc80c35b4513c271755480e285c0d9 (diff) | |
| download | emacs-ac6b7d78589abd2551131431a95e6532a710aab5.tar.gz emacs-ac6b7d78589abd2551131431a95e6532a710aab5.zip | |
(grep-compute-defaults): If xargs -e isn't supported, use find -exec.
| -rw-r--r-- | lisp/progmodes/compile.el | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el index a426ea64757..5f2d3c7b059 100644 --- a/lisp/progmodes/compile.el +++ b/lisp/progmodes/compile.el | |||
| @@ -560,9 +560,13 @@ to a function that generates a unique name." | |||
| 560 | (format "%s -n " grep-program))) | 560 | (format "%s -n " grep-program))) |
| 561 | (unless grep-find-use-xargs | 561 | (unless grep-find-use-xargs |
| 562 | (setq grep-find-use-xargs | 562 | (setq grep-find-use-xargs |
| 563 | (if (equal (call-process "find" nil nil nil | 563 | (if (and |
| 564 | null-device "-print0") | 564 | (equal (call-process "find" nil nil nil |
| 565 | 0) | 565 | null-device "-print0") |
| 566 | 0) | ||
| 567 | (equal (call-process "xargs" nil nil nil | ||
| 568 | "-0" "-e" "echo") | ||
| 569 | 0)) | ||
| 566 | 'gnu))) | 570 | 'gnu))) |
| 567 | (setq grep-find-command | 571 | (setq grep-find-command |
| 568 | (cond ((eq grep-find-use-xargs 'gnu) | 572 | (cond ((eq grep-find-use-xargs 'gnu) |