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#6784: 24.0.50; cmdproxy incosistency with command pathnames Date: Tue, 03 Aug 2010 20:21:13 +0300 Message-ID: <83pqxzy5me.fsf@gnu.org> References: <87iq3radvf.fsf@telefonica.net> 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 1280857110 9912 80.91.229.12 (3 Aug 2010 17:38:30 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 3 Aug 2010 17:38:30 +0000 (UTC) Cc: 6784@debbugs.gnu.org To: =?UTF-8?Q?=C3=93scar?= Fuentes Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Aug 03 19:38:28 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 1OgLRb-00071J-Kd for geb-bug-gnu-emacs@m.gmane.org; Tue, 03 Aug 2010 19:38:27 +0200 Original-Received: from localhost ([127.0.0.1]:53768 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OgLRb-0007yq-1W for geb-bug-gnu-emacs@m.gmane.org; Tue, 03 Aug 2010 13:38:27 -0400 Original-Received: from [140.186.70.92] (port=57600 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OgLRF-0007gP-J5 for bug-gnu-emacs@gnu.org; Tue, 03 Aug 2010 13:38:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OgLRD-0001VM-Tl for bug-gnu-emacs@gnu.org; Tue, 03 Aug 2010 13:38:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45466) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OgLRD-0001VG-R8 for bug-gnu-emacs@gnu.org; Tue, 03 Aug 2010 13:38:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OgLAl-0003Lo-Bj; Tue, 03 Aug 2010 13:21:04 -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: Tue, 03 Aug 2010 17:21:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6784 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6784-submit@debbugs.gnu.org id=B6784.128085604612871 (code B ref 6784); Tue, 03 Aug 2010 17:21:03 +0000 Original-Received: (at 6784) by debbugs.gnu.org; 3 Aug 2010 17:20:46 +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 1OgLAU-0003LY-6x for submit@debbugs.gnu.org; Tue, 03 Aug 2010 13:20:46 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OgLAS-0003LS-Bl for 6784@debbugs.gnu.org; Tue, 03 Aug 2010 13:20:45 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0L6L003006OJJZ00@a-mtaout20.012.net.il> for 6784@debbugs.gnu.org; Tue, 03 Aug 2010 20:21:10 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([77.127.247.236]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0L6L00BR36V9Q061@a-mtaout20.012.net.il>; Tue, 03 Aug 2010 20:21:10 +0300 (IDT) In-reply-to: <87iq3radvf.fsf@telefonica.net> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 03 Aug 2010 13:21: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:39204 Archived-At: > From: =C3=93scar Fuentes > Date: Tue, 03 Aug 2010 17:56:52 +0200 > Cc:=20 >=20 > A command path name that contains slashes (instead of backslashes) = will > work fine with cmdproxy as far as it doesn't require to be executed > through a shell. Otherwise only backslashes work. Example: >=20 > cmdproxy.exe -c "c:/foo/bar.exe" >=20 > which executes bar.exe through CreateProces, works fine, but >=20 > cmdproxy.exe -c "c:/foo/bar.exe | zoo.exe" >=20 > which invokes the shell for executing the command, fails with an er= ror > message that comes from cmd.exe and that says "c:" is not recognize= d as > a command. Please show the full recipe to reproduce this problem. You don't invoke cmdproxy from the command line, do you? > Maybe we should remove the CreateProcess method and do everything > through the underlying shell. That's not a good idea if the shell is command.com, for sure. For cmd.exe, the problem is a lesser one, but it still exists; e.g., cmd.exe is limited to 4K long commands, while CreateProcess can handl= e 32K.