From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Fabio Leimgruber Newsgroups: gmane.emacs.bugs Subject: bug#19817: 24.4; cmdproxy fails on some .exe when given a path argument Date: Mon, 09 Feb 2015 21:47:09 +0100 Message-ID: <54D91CCD.9090102@web.de> References: <83r3u09p8i.fsf@gnu.org> <54D8C834.8000406@web.de> <83386f9e09.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1423514908 6803 80.91.229.3 (9 Feb 2015 20:48:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 9 Feb 2015 20:48:28 +0000 (UTC) To: 19817@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 09 21:48:25 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 1YKvFo-0008Uf-8L for geb-bug-gnu-emacs@m.gmane.org; Mon, 09 Feb 2015 21:48:24 +0100 Original-Received: from localhost ([::1]:35132 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YKvFn-000765-Mo for geb-bug-gnu-emacs@m.gmane.org; Mon, 09 Feb 2015 15:48:23 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37689) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YKvFY-0006r2-6J for bug-gnu-emacs@gnu.org; Mon, 09 Feb 2015 15:48:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YKvFS-0004DK-Bw for bug-gnu-emacs@gnu.org; Mon, 09 Feb 2015 15:48:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47341) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YKvFS-0004D7-9r for bug-gnu-emacs@gnu.org; Mon, 09 Feb 2015 15:48:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YKvFS-0006R8-2l for bug-gnu-emacs@gnu.org; Mon, 09 Feb 2015 15:48:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Fabio Leimgruber Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 09 Feb 2015 20:48: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: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org X-Debbugs-Original-Cc: 19817@debbugs.gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.142351486424715 (code B ref -1); Mon, 09 Feb 2015 20:48:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 9 Feb 2015 20:47:44 +0000 Original-Received: from localhost ([127.0.0.1]:38581 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YKvF9-0006QY-Sn for submit@debbugs.gnu.org; Mon, 09 Feb 2015 15:47:44 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:35802) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YKvF7-0006QJ-Jb for submit@debbugs.gnu.org; Mon, 09 Feb 2015 15:47:42 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YKvEz-0003xO-7e for submit@debbugs.gnu.org; Mon, 09 Feb 2015 15:47:36 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:34819) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YKvEz-0003xI-5E for submit@debbugs.gnu.org; Mon, 09 Feb 2015 15:47:33 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37468) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YKvEu-0006AE-K9 for bug-gnu-emacs@gnu.org; Mon, 09 Feb 2015 15:47:33 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YKvEq-0003t1-2F for bug-gnu-emacs@gnu.org; Mon, 09 Feb 2015 15:47:28 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:40313) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YKvEp-0003sZ-SO for bug-gnu-emacs@gnu.org; Mon, 09 Feb 2015 15:47:24 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YKvEn-00083k-E9 for bug-gnu-emacs@gnu.org; Mon, 09 Feb 2015 21:47:21 +0100 Original-Received: from 80-110-94-131.cgn.dynamic.surfer.at ([80.110.94.131]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 09 Feb 2015 21:47:21 +0100 Original-Received: from fabio.leimgruber by 80-110-94-131.cgn.dynamic.surfer.at with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 09 Feb 2015 21:47:21 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 38 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 80-110-94-131.cgn.dynamic.surfer.at User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 In-Reply-To: <83386f9e09.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). 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:99222 Archived-At: 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. [1] https://github.com/jorgenschaefer/elpy