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#19817: 24.4; cmdproxy fails on some .exe when given a path argument Date: Mon, 09 Feb 2015 19:43:50 +0200 Message-ID: <83386f9e09.fsf@gnu.org> References: <83r3u09p8i.fsf@gnu.org> <54D8C834.8000406@web.de> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1423503913 14372 80.91.229.3 (9 Feb 2015 17:45:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 9 Feb 2015 17:45:13 +0000 (UTC) Cc: 19817@debbugs.gnu.org To: Fabio Leimgruber Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 09 18:45:12 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YKsOV-00067C-M3 for geb-bug-gnu-emacs@m.gmane.org; Mon, 09 Feb 2015 18:45:11 +0100 Original-Received: from localhost ([::1]:34258 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YKsOU-0000ZV-VR for geb-bug-gnu-emacs@m.gmane.org; Mon, 09 Feb 2015 12:45:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42108) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YKsOQ-0000Vm-D6 for bug-gnu-emacs@gnu.org; Mon, 09 Feb 2015 12:45:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YKsOM-0002MC-Ve for bug-gnu-emacs@gnu.org; Mon, 09 Feb 2015 12:45:06 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47281) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YKsOM-0002Kt-Re for bug-gnu-emacs@gnu.org; Mon, 09 Feb 2015 12:45:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YKsOM-0001qu-Al for bug-gnu-emacs@gnu.org; Mon, 09 Feb 2015 12:45:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 09 Feb 2015 17:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19817 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 19817-submit@debbugs.gnu.org id=B19817.14235038597054 (code B ref 19817); Mon, 09 Feb 2015 17:45:02 +0000 Original-Received: (at 19817) by debbugs.gnu.org; 9 Feb 2015 17:44:19 +0000 Original-Received: from localhost ([127.0.0.1]:38521 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YKsNe-0001ph-Kd for submit@debbugs.gnu.org; Mon, 09 Feb 2015 12:44:18 -0500 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:34114) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YKsNb-0001ox-UW for 19817@debbugs.gnu.org; Mon, 09 Feb 2015 12:44:17 -0500 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0NJI00E00MGBWI00@a-mtaout21.012.net.il> for 19817@debbugs.gnu.org; Mon, 09 Feb 2015 19:44:04 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NJI00EREMLFTK60@a-mtaout21.012.net.il>; Mon, 09 Feb 2015 19:44:04 +0200 (IST) In-reply-to: <54D8C834.8000406@web.de> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:99219 Archived-At: > Date: Mon, 09 Feb 2015 15:46:12 +0100 > From: Fabio Leimgruber > CC: 19817@debbugs.gnu.org > > On 2/8/15 8:29 PM, Eli Zaretskii wrote: > > > > You are not supposed to invoke cmdproxy directly, only via Emacs > > functions that invoke shell commands. So please show a test case > > which works with "write" or "write.exe" or "write.test.exe", but fails > > with "write.test". > > > > (defun compile-quoted (command &rest args) > "Run `compile' with COMMAND and ARGS quoted. > > Useful if you can not be sure if there are special characters in > the command or arguments, like `start-process' allows." > (let ((compile-command (mapconcat #'shell-quote-argument > (cons command args) > " "))) > (compile compile-command))) > > (compile-quoted "write" "d:/asdf.txt") > > (compile-quoted "write.test" "d:/asdf.txt") Thanks, I will look into this. One question, though: which executable programs should exist in the current directory for this test case to reproduce the problem? Is the answer write.exe and write.test.exe? (I'm asking because the original use case seemed to involve a batch file as well, which complicates things quite a lot.)