As discussed on xemacs-patches:
2005-12-04 Yoichi NAKAYAMA <yoichi(a)geiin.org>
* igrep.el (igrep-find-use-xargs): Don't blindly assume everything
except Mac OS X works.
Many thanks!
--
Cheers =8-} Mike
Friede, Völkerverständigung und überhaupt blabla
Index: igrep.el
===================================================================
RCS file: /pack/xemacscvs/XEmacs/packages/xemacs-packages/igrep/igrep.el,v
retrieving revision 1.8
diff -u -r1.8 igrep.el
--- igrep.el 17 Jul 2004 15:39:39 -0000 1.8
+++ igrep.el 4 Dec 2005 15:43:20 -0000
@@ -452,7 +452,8 @@
"-e" "-0" "cat")
0))
'gnu)
- ((not (equal system-type 'darwin)))) ; not MacOS
+ ((equal (call-process "xargs" nil nil nil "-e") 0)
+ t))
"Whether `\\[igrep-find]' uses the `xargs` program or not.
If `gnu', it executes
`find ... -print0 | xargs -0 -e grep ...`;