comparison lisp/progmodes/compile.el @ 37250:2f0cd80341f8

(grep-compute-defaults): Use null-device instead of literal /dev/null. Reported by Jens Schmidt <schmidt@mathematik.uni-kl.de>.
author Eli Zaretskii <eliz@gnu.org>
date Fri, 06 Apr 2001 14:42:15 +0000
parents 8b657bbc6608
children 7137508c16aa
comparison
equal deleted inserted replaced
37249:61f9346a42a6 37250:2f0cd80341f8
585 (cond ((eq grep-find-use-xargs 'gnu) 585 (cond ((eq grep-find-use-xargs 'gnu)
586 (format "find . -type f -print0 | xargs -0 -e %s" 586 (format "find . -type f -print0 | xargs -0 -e %s"
587 grep-command)) 587 grep-command))
588 (grep-find-use-xargs 588 (grep-find-use-xargs
589 (format "find . -type f -print | xargs %s" grep-command)) 589 (format "find . -type f -print | xargs %s" grep-command))
590 (t (cons (format "find . -type f -exec %s {} /dev/null \\;" 590 (t (cons (format "find . -type f -exec %s {} %s \\;"
591 grep-command) 591 grep-command null-device)
592 (+ 22 (length grep-command))))))) 592 (+ 22 (length grep-command)))))))
593 593
594 ;;;###autoload 594 ;;;###autoload
595 (defun grep (command-args) 595 (defun grep (command-args)
596 "Run grep, with user-specified args, and collect output in a buffer. 596 "Run grep, with user-specified args, and collect output in a buffer.