[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#18745: 24.3; MS Windows, `call-process-shell-command' fails on `shel
From: |
Eli Zaretskii |
Subject: |
bug#18745: 24.3; MS Windows, `call-process-shell-command' fails on `shell-quote-argument'ed bat file with quoted args |
Date: |
Thu, 16 Oct 2014 16:57:19 +0300 |
> From: Stefan Monnier <monnier@iro.umontreal.ca>
> Cc: Noam Postavsky <npostavs@users.sourceforge.net>, 18745@debbugs.gnu.org
> Date: Thu, 16 Oct 2014 09:47:20 -0400
>
> >> (call-process-shell-command "\"c:/path-without-space/foo-bar.bat\""
> >> nil t t "\"x y\"")
> [...]
> > This is a Windows misfeature, not an Emacs bug: the CreateProcess
> > primitive fails like that when passed a command that is a batch file.
> > To work around, try using cmd.exe as the command, and the batch file
> > with arguments as its arguments, with "/c" prepended.
>
> But call-process-shell-command (contrary to call-process) should already
> be using cmd.exe, no?
No, shell-file-name on Windows is set to invoke cmdproxy.
- bug#18745: 24.3; MS Windows, `call-process-shell-command' fails on `shell-quote-argument'ed bat file with quoted args, Noam Postavsky, 2014/10/16
- bug#18745: 24.3; MS Windows, `call-process-shell-command' fails on `shell-quote-argument'ed bat file with quoted args, Eli Zaretskii, 2014/10/16
- bug#18745: 24.3; MS Windows, `call-process-shell-command' fails on `shell-quote-argument'ed bat file with quoted args, Stefan Monnier, 2014/10/16
- bug#18745: 24.3; MS Windows, `call-process-shell-command' fails on `shell-quote-argument'ed bat file with quoted args,
Eli Zaretskii <=
- bug#18745: 24.3; MS Windows, `call-process-shell-command' fails on `shell-quote-argument'ed bat file with quoted args, Noam Postavsky, 2014/10/16
- bug#18745: 24.3; MS Windows, `call-process-shell-command' fails on `shell-quote-argument'ed bat file with quoted args, Eli Zaretskii, 2014/10/16
- bug#18745: 24.3; MS Windows, `call-process-shell-command' fails on `shell-quote-argument'ed bat file with quoted args, Noam Postavsky, 2014/10/16
- bug#18745: 24.3; MS Windows, `call-process-shell-command' fails on `shell-quote-argument'ed bat file with quoted args, Noam Postavsky, 2014/10/21
- bug#18745: 24.3; MS Windows, `call-process-shell-command' fails on `shell-quote-argument'ed bat file with quoted args, Eli Zaretskii, 2014/10/22
- bug#18745: 24.3; MS Windows, `call-process-shell-command' fails on `shell-quote-argument'ed bat file with quoted args, Noam Postavsky, 2014/10/22
- bug#18745: 24.3; MS Windows, `call-process-shell-command' fails on `shell-quote-argument'ed bat file with quoted args, Eli Zaretskii, 2014/10/23
- bug#18745: 24.3; MS Windows, `call-process-shell-command' fails on `shell-quote-argument'ed bat file with quoted args, Eli Zaretskii, 2014/10/25
- bug#18745: 24.3; MS Windows, `call-process-shell-command' fails on `shell-quote-argument'ed bat file with quoted args, Noam Postavsky, 2014/10/25
- bug#18745: 24.3; MS Windows, `call-process-shell-command' fails on `shell-quote-argument'ed bat file with quoted args, Stefan Monnier, 2014/10/16