emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-bug-tracker] bug#6674: closed (PATCH: fix assignment of grep-find


From: GNU bug Tracking System
Subject: [Emacs-bug-tracker] bug#6674: closed (PATCH: fix assignment of grep-find-use-xargs on Windows/MS-DOS)
Date: Mon, 02 Aug 2010 20:18:02 +0000

Your message dated Mon, 02 Aug 2010 22:17:31 +0200
with message-id <address@hidden>
and subject line Closing bug 6674
has caused the GNU bug report #6674,
regarding PATCH: fix assignment of grep-find-use-xargs on Windows/MS-DOS
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
6674: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6674
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: PATCH: fix assignment of grep-find-use-xargs on Windows/MS-DOS Date: Tue, 20 Jul 2010 05:49:35 +0200 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)
On Windows, when find-program points to a GNU-compatible `find'
executable, grep-find-use-xargs is assigned the symbol 'gnu. The
consequence of this is that `rgrep' ends building a command that
contains a pipe: find <args> | xargs -0 grep <args> This ends with
`find' reporting confusing errors about wrong arguments.

An extra test is added to the assigment of grep-find-use-xargs to force
the value 'exec on Windows and MS-DOS.

2010-07-20  Óscar Fuentes  <address@hidden>

        * progmodes/grep.el: (grep-compute-defaults): always assign
        'exec to grep-find-use-xargs on Windows and MS-DOS.

=== modified file 'lisp/progmodes/grep.el'
*** lisp/progmodes/grep.el      2010-05-21 20:43:04 +0000
--- lisp/progmodes/grep.el      2010-07-20 03:42:21 +0000
*************** Set up `compilation-exit-message-functio
*** 552,557 ****
--- 552,560 ----
        (unless grep-find-use-xargs
          (setq grep-find-use-xargs
                (cond
+                ;; We don't want a shell pipe on those systems:
+                ((or (eq system-type 'windows-nt) (eq system-type 'ms-dos))
+                 'exec)
                 ((and
                   (grep-probe find-program `(nil nil nil ,null-device 
"-print0"))
                   (grep-probe xargs-program `(nil nil nil "-0" "-e" "echo")))



--- End Message ---
--- Begin Message --- Subject: Closing bug 6674 Date: Mon, 02 Aug 2010 22:17:31 +0200 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)
Patch committed.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]