From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#6674: PATCH: fix assignment of grep-find-use-xargs on Windows Date: Wed, 21 Jul 2010 07:02:34 +0300 Message-ID: <83pqyhcwit.fsf@gnu.org> References: <878w564xtc.fsf@telefonica.net> <871vax3fox.fsf@telefonica.net> <4C464307.8050407@gmail.com> Reply-To: Eli Zaretskii 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 1279688458 29952 80.91.229.12 (21 Jul 2010 05:00:58 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 21 Jul 2010 05:00:58 +0000 (UTC) Cc: ofv@wanadoo.es, lekktu@gmail.com, bug-gnu-emacs@gnu.org To: Christoph Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jul 21 07:00:56 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 1ObRQO-00014T-BG for geb-bug-gnu-emacs@m.gmane.org; Wed, 21 Jul 2010 07:00:56 +0200 Original-Received: from localhost ([127.0.0.1]:43256 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ObRQN-0008Jr-VV for geb-bug-gnu-emacs@m.gmane.org; Wed, 21 Jul 2010 01:00:56 -0400 Original-Received: from [140.186.70.92] (port=40994 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ObRQC-0008Iw-Ot for bug-gnu-emacs@gnu.org; Wed, 21 Jul 2010 01:00:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1ObRQA-0002xg-SQ for bug-gnu-emacs@gnu.org; Wed, 21 Jul 2010 01:00:44 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37352) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ObRQA-0002xb-Qm for bug-gnu-emacs@gnu.org; Wed, 21 Jul 2010 01:00:42 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1ObR5D-0008Vi-As; Wed, 21 Jul 2010 00:39:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 21 Jul 2010 04:39:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6674 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by submit@debbugs.gnu.org id=B.127968710232683 (code B ref -1); Wed, 21 Jul 2010 04:39:03 +0000 Original-Received: (at submit) by debbugs.gnu.org; 21 Jul 2010 04:38:22 +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 1ObR4W-0008V3-2m for submit@debbugs.gnu.org; Wed, 21 Jul 2010 00:38:20 -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 1ObR4U-0008UK-D3 for submit@debbugs.gnu.org; Wed, 21 Jul 2010 00:38:18 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:58403) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1ObQXG-0006ZA-5P for submit@debbugs.gnu.org; Wed, 21 Jul 2010 00:03:58 -0400 Original-Received: from [140.186.70.92] (port=33862 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ObQXB-0002r8-6j for bug-gnu-emacs@gnu.org; Wed, 21 Jul 2010 00:03:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1ObQX9-00024h-DT for bug-gnu-emacs@gnu.org; Wed, 21 Jul 2010 00:03:52 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:43883) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ObQX9-00024H-6b for bug-gnu-emacs@gnu.org; Wed, 21 Jul 2010 00:03:51 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0L5W0050037UAO00@a-mtaout22.012.net.il> for bug-gnu-emacs@gnu.org; Wed, 21 Jul 2010 07:02:35 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([77.127.61.30]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0L5W00HAF38A4B21@a-mtaout22.012.net.il>; Wed, 21 Jul 2010 07:02:35 +0300 (IDT) In-reply-to: <4C464307.8050407@gmail.com> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) 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: Wed, 21 Jul 2010 00:39:03 -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:38720 Archived-At: > Date: Tue, 20 Jul 2010 18:44:55 -0600 > From: Christoph > CC: Eli Zaretskii , Juanma Barranquero ,=20 > =C3=93scar Fuentes >=20 > If nobody else is already working on it, I'd want to give it a try = to=20 > fix this. Either by enhancing cmdproxy or implementing Eli's batch = file=20 > solution. Thanks. To make my intent clear: I meant to enhance cmdproxy to use = a batch file when invoking the windows shell. You will see that there'= s a variable need_shell in cmdproxy's `main' function which gets set to a non-zero value when cmdproxy decides it needs to pass the command the the shell instead of invoking it directly. What I suggested is t= o modify the code in this case to put the command on a temporary batch file, then invoke the shell on that batch file rather than on the command itself.