all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Fabio Leimgruber <fabio.leimgruber@web.de>
Cc: 19817@debbugs.gnu.org
Subject: bug#19817: 24.4; cmdproxy fails on some .exe when given a path argument
Date: Mon, 09 Feb 2015 19:43:50 +0200	[thread overview]
Message-ID: <83386f9e09.fsf@gnu.org> (raw)
In-Reply-To: <54D8C834.8000406@web.de>

> Date: Mon, 09 Feb 2015 15:46:12 +0100
> From: Fabio Leimgruber <fabio.leimgruber@web.de>
> 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.)





  reply	other threads:[~2015-02-09 17:43 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 [this message]
2015-02-09 20:47       ` Fabio Leimgruber
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=83386f9e09.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=19817@debbugs.gnu.org \
    --cc=fabio.leimgruber@web.de \
    /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.