bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#19817: 24.4; cmdproxy fails on some .exe when given a path argument


From: Fabio Leimgruber
Subject: bug#19817: 24.4; cmdproxy fails on some .exe when given a path argument
Date: Mon, 09 Feb 2015 21:47:09 +0100
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.4.0

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







reply via email to

[Prev in Thread] Current Thread [Next in Thread]