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#6784: 24.0.50; cmdproxy incosistency with command pathnames Date: Tue, 03 Aug 2010 17:56:52 +0200 Message-ID: <87iq3radvf.fsf@telefonica.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1280852117 23102 80.91.229.12 (3 Aug 2010 16:15:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 3 Aug 2010 16:15:17 +0000 (UTC) To: 6784@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Aug 03 18:15:12 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 1OgK8v-0006Ow-5s for geb-bug-gnu-emacs@m.gmane.org; Tue, 03 Aug 2010 18:15:05 +0200 Original-Received: from localhost ([127.0.0.1]:34253 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OgK8u-0003p1-Cn for geb-bug-gnu-emacs@m.gmane.org; Tue, 03 Aug 2010 12:15:04 -0400 Original-Received: from [140.186.70.92] (port=43899 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OgK2K-0008E8-SD for bug-gnu-emacs@gnu.org; Tue, 03 Aug 2010 12:08:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OgK29-0002T8-Rs for bug-gnu-emacs@gnu.org; Tue, 03 Aug 2010 12:08:16 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34828) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OgK29-0002T4-QW for bug-gnu-emacs@gnu.org; Tue, 03 Aug 2010 12:08:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OgJrR-0002mM-Pc; Tue, 03 Aug 2010 11:57:01 -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, 03 Aug 2010 15:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 6784 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.128085101010674 (code B ref -1); Tue, 03 Aug 2010 15:57:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 3 Aug 2010 15:56:50 +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 1OgJrG-0002m7-BG for submit@debbugs.gnu.org; Tue, 03 Aug 2010 11:56:50 -0400 Original-Received: from mx10.gnu.org ([199.232.76.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OgJrD-0002m1-Kb for submit@debbugs.gnu.org; Tue, 03 Aug 2010 11:56:48 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:33172) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1OgJrd-0008U4-Vt for submit@debbugs.gnu.org; Tue, 03 Aug 2010 11:57:14 -0400 Original-Received: from [140.186.70.92] (port=40439 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OgJrc-0001OB-2Q for bug-gnu-emacs@gnu.org; Tue, 03 Aug 2010 11:57:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OgJrW-0000cI-Ov for bug-gnu-emacs@gnu.org; Tue, 03 Aug 2010 11:57:11 -0400 Original-Received: from impaqm4.telefonica.net ([213.4.138.4]:49716) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OgJrW-0000bl-JI for bug-gnu-emacs@gnu.org; Tue, 03 Aug 2010 11:57:06 -0400 Original-Received: from IMPmailhost2.adm.correo ([10.20.102.39]) by IMPaqm4.telefonica.net with bizsmtp id ppbl1e00L0r0BT63QrwtCs; Tue, 03 Aug 2010 17:56:53 +0200 Original-Received: from qcore ([83.42.13.171]) by IMPmailhost2.adm.correo with BIZ IMP id prws1e00L3hRxRf1irwtUQ; Tue, 03 Aug 2010 17:56:53 +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: Genre and OS details not recognized. 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: Tue, 03 Aug 2010 11:57:01 -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:39203 Archived-At: 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: cmdproxy.exe -c "c:/foo/bar.exe" which executes bar.exe through CreateProces, works fine, but cmdproxy.exe -c "c:/foo/bar.exe | zoo.exe" which invokes the shell for executing the command, fails with an error message that comes from cmd.exe and that says "c:" is not recognized as a command. OTOH, cmdproxy.exe -c "c:\foo\bar.exe | zoo.exe" works fine. cmd.exe has no problem with commands that uses the slash as directory separator, as this works OK: cmd /c c:/foo/bar.exe so the problem must be in cmdproxy, which probably splits the command as "c:" "/foo/bar.exe" and passes it as separate arguments to the shell. Although this bug possibly is not hard to fix, maybe we should consider the larger scenario: is it worth the trouble having two separate execution paths on cmdproxy? Inconsistencies like this among the two separate ways of executing commands may arise on the future, confusing the users. Maybe we should remove the CreateProcess method and do everything through the underlying shell.