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: Tue, 10 Feb 2015 18:29:04 +0200 Message-ID: <83zj8l7msv.fsf@gnu.org> References: <83r3u09p8i.fsf@gnu.org> <54D8C834.8000406@web.de> <83386f9e09.fsf@gnu.org> <54D91CCD.9090102@web.de> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1423585825 24577 80.91.229.3 (10 Feb 2015 16:30:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 10 Feb 2015 16:30:25 +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 Tue Feb 10 17:30:14 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 1YLDhU-0000j5-V2 for geb-bug-gnu-emacs@m.gmane.org; Tue, 10 Feb 2015 17:30:13 +0100 Original-Received: from localhost ([::1]:40565 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YLDhU-000888-Fy for geb-bug-gnu-emacs@m.gmane.org; Tue, 10 Feb 2015 11:30:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36216) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YLDhQ-00085w-Mb for bug-gnu-emacs@gnu.org; Tue, 10 Feb 2015 11:30:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YLDhL-0005c4-NT for bug-gnu-emacs@gnu.org; Tue, 10 Feb 2015 11:30:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48289) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YLDhL-0005bu-Kq for bug-gnu-emacs@gnu.org; Tue, 10 Feb 2015 11:30:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YLDhL-0008Fs-1H for bug-gnu-emacs@gnu.org; Tue, 10 Feb 2015 11:30:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 10 Feb 2015 16:30: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.142358576531661 (code B ref 19817); Tue, 10 Feb 2015 16:30:02 +0000 Original-Received: (at 19817) by debbugs.gnu.org; 10 Feb 2015 16:29:25 +0000 Original-Received: from localhost ([127.0.0.1]:39529 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YLDgi-0008Ea-HB for submit@debbugs.gnu.org; Tue, 10 Feb 2015 11:29:24 -0500 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:61421) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YLDgf-0008EN-JT for 19817@debbugs.gnu.org; Tue, 10 Feb 2015 11:29:22 -0500 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0NJK00I00DIBPO00@a-mtaout21.012.net.il> for 19817@debbugs.gnu.org; Tue, 10 Feb 2015 18:29:15 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NJK00IBMDSQNI70@a-mtaout21.012.net.il>; Tue, 10 Feb 2015 18:29:15 +0200 (IST) In-reply-to: <54D91CCD.9090102@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:99241 Archived-At: > Date: Mon, 09 Feb 2015 21:47:09 +0100 > From: Fabio Leimgruber > CC: 19817@debbugs.gnu.org > > On 2/9/15 6:43 PM, Eli Zaretskii wrote: > >> > >> (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.) > > > > Thanks for looking into this. > > Regarding the executables: originally, this came to attention when we > tried to call a py.test.exe (installed via Python package manager) from > the testing machinery of elpy [1] - i.e. no batch files. AFAICS, the > problem occurs with any .exe that is renamed so that the file name > contains a second dot. I chose write.exe (and a copy renamed to > write.test.exe) from C:\Windows\System32 for a reproducible example > because it is already on %PATH% and most likely present on a standard > Windows system. There were a few issues in cmdproxy wrt this scenario. I fixed them on the emacs-24 branch, please take a look.