all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: "Björn Lindqvist" <bjourne@gmail.com>
Cc: 21323@debbugs.gnu.org
Subject: bug#21323: start-process rejects .com executables
Date: Sun, 23 Aug 2015 17:29:05 +0300	[thread overview]
Message-ID: <831teuhydq.fsf@gnu.org> (raw)
In-Reply-To: <CALG+76cbxg8-ZmtFCrEzqc2Qfw7+XK7DwYz+sa=OdT-y+tfUGQ@mail.gmail.com>

> Date: Sun, 23 Aug 2015 15:06:55 +0200
> From: Björn Lindqvist <bjourne@gmail.com>
> Cc: 21323-done@debbugs.gnu.org
> 
> 2015-08-22 21:21 GMT+02:00 Eli Zaretskii <eliz@gnu.org>:
> >> I found this bug on windows ver 24.5.1. If you try to run a .com file:
> >>
> >> (start-process "X" "Y" "c:/Windows/System32/tree.com")
> >>
> >> You get: "Spawning child process: exec format error"
> >
> > Indeed.
> >
> >> The cryptic error appears to be a result of the .com extension.
> >
> > No, it's because .com programs are run via cmdproxy.exe, and there's a
> > bug in computing the directory where we look for it.
> 
> What is the reason for that?

We don't know how to distinguish between DOS .com programs and the
other kind.  DOS .com programs must be run via cmdproxy to work around
some subtle problems in running DOS programs from a Windows program
(including, but not limited to, standard I/O redirection and killing
subprocesses).

> As you know, on modern windowses there is
> no difference except for the name between .com and .exe files.

But the user could bring a .com program from DOS, and we have no means
of telling one from the other.

> If there was an option for it, I'd set it so my binary is not run
> through cmdproxy.exe.

Why do you care?  Barring bugs, cmdproxy is transparent to the
programs in invokes.





      reply	other threads:[~2015-08-23 14:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-22 17:24 bug#21323: start-process rejects .com executables Björn Lindqvist
2015-08-22 19:21 ` Eli Zaretskii
2015-08-23 13:06   ` Björn Lindqvist
2015-08-23 14:29     ` Eli Zaretskii [this message]

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=831teuhydq.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=21323@debbugs.gnu.org \
    --cc=bjourne@gmail.com \
    /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.