From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?=C3=93scar?= Fuentes Newsgroups: gmane.emacs.bugs Subject: bug#6674: PATCH: fix assignment of grep-find-use-xargs on Windows/MS-DOS Date: Tue, 20 Jul 2010 05:49:35 +0200 Message-ID: <878w564xtc.fsf@telefonica.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1279598450 11286 80.91.229.12 (20 Jul 2010 04:00:50 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 20 Jul 2010 04:00:50 +0000 (UTC) To: 6674@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jul 20 06:00:48 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ob40e-0005Dw-6t for geb-bug-gnu-emacs@m.gmane.org; Tue, 20 Jul 2010 06:00:48 +0200 Original-Received: from localhost ([127.0.0.1]:36573 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ob40c-0004gE-Rl for geb-bug-gnu-emacs@m.gmane.org; Tue, 20 Jul 2010 00:00:46 -0400 Original-Received: from [140.186.70.92] (port=38717 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ob40W-0004g8-GG for bug-gnu-emacs@gnu.org; Tue, 20 Jul 2010 00:00:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ob40V-0004zX-Bb for bug-gnu-emacs@gnu.org; Tue, 20 Jul 2010 00:00:40 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43549) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ob40V-0004zS-9p for bug-gnu-emacs@gnu.org; Tue, 20 Jul 2010 00:00:39 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Ob3rC-0005kv-5P; Mon, 19 Jul 2010 23:51:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?=C3=93scar?= Fuentes Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 20 Jul 2010 03:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 6674 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.127959784522117 (code B ref -1); Tue, 20 Jul 2010 03:51:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 20 Jul 2010 03:50:45 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ob3qu-0005kg-VO for submit@debbugs.gnu.org; Mon, 19 Jul 2010 23:50:45 -0400 Original-Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ob3qs-0005kY-6r for submit@debbugs.gnu.org; Mon, 19 Jul 2010 23:50:43 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:44957) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Ob3rE-0001fG-RN for submit@debbugs.gnu.org; Mon, 19 Jul 2010 23:51:04 -0400 Original-Received: from [140.186.70.92] (port=34600 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ob3rD-0003c0-Em for bug-gnu-emacs@gnu.org; Mon, 19 Jul 2010 23:51:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ob3rC-00026z-3y for bug-gnu-emacs@gnu.org; Mon, 19 Jul 2010 23:51:03 -0400 Original-Received: from impaqm3.telefonica.net ([213.4.138.3]:26695) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ob3rB-00026b-TJ for bug-gnu-emacs@gnu.org; Mon, 19 Jul 2010 23:51:02 -0400 Original-Received: from IMPmailhost4.adm.correo ([10.20.102.125]) by IMPaqm3.telefonica.net with bizsmtp id k3pc1e00o2iL0W23P3pcVd; Tue, 20 Jul 2010 05:49:36 +0200 Original-Received: from qcore ([83.42.13.171]) by IMPmailhost4.adm.correo with BIZ IMP id k3pb1e0083hRxRf1k3pc7w; Tue, 20 Jul 2010 05:49:36 +0200 X-Brightmail-Tracker: AAAAAA== X-TE-authinfo: authemail="981711563$telefonica.net" |auth_email="981711563@telefonica.net" X-TE-AcuTerraCos: auth_cuTerraCos="cosuitnetc01" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 19 Jul 2010 23:51:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:38677 Archived-At: 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 | xargs -0 grep 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 =C3=93scar Fuentes * progmodes/grep.el: (grep-compute-defaults): always assign 'exec to grep-find-use-xargs on Windows and MS-DOS. =3D=3D=3D 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")))