all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Fabio Leimgruber <fabio.leimgruber@web.de>
To: 19817@debbugs.gnu.org
Subject: bug#19817: 24.4; cmdproxy fails on some .exe when given a path argument
Date: Mon, 09 Feb 2015 21:47:09 +0100	[thread overview]
Message-ID: <54D91CCD.9090102@web.de> (raw)
In-Reply-To: <83386f9e09.fsf@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.

[1] https://github.com/jorgenschaefer/elpy







  reply	other threads:[~2015-02-09 20:47 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-08 14:57 bug#19817: 24.4; cmdproxy fails on some .exe when given a path argument Fabio Leimgruber
2015-02-08 19:29 ` Eli Zaretskii
2015-02-08 19:43   ` Eli Zaretskii
2015-02-09 14:46   ` Fabio Leimgruber
2015-02-09 17:43     ` Eli Zaretskii
2015-02-09 20:47       ` Fabio Leimgruber [this message]
2015-02-10 16:29         ` Eli Zaretskii
2015-02-13 22:34           ` Fabio Leimgruber
2015-02-14  8:43             ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=54D91CCD.9090102@web.de \
    --to=fabio.leimgruber@web.de \
    --cc=19817@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.