From: Mathias Dahl <mathias.dahl@gmail.com>
To: emacs-devel@gnu.org
Subject: call-process having problems with a big total length of arguments under Windows
Date: Sun, 10 Mar 2013 14:02:00 +0100 [thread overview]
Message-ID: <CABrcCQ6YpiAKXoz1fvZn0gBpvtLse8cvbSOT=hKPs=yFemY4iw@mail.gmail.com> (raw)
Under GNU/Linux I can do this (calling ping with an 10000 long argument list):
(apply 'call-process
(append (list
"ping"
nil t nil)
(make-list 10000 "0123456789")))
(of course, ping complains about the syntax, but that is another
matter, ping is just an example of a command that exists on both
platforms where I test)
On Windows (Windows 7, 64 bit) this works in a quite recent Emacs
(24.1.50.1 from last summer):
(apply 'call-process
(append (list
"ping"
nil t nil)
(make-list 2000 "0123456789")))
But this does not (2000 is changed to 3000):
(apply 'call-process
(append (list
"ping"
nil t nil)
(make-list 3000 "0123456789")))
I get (file-error "Spawning child process" "exec format error") when I
reach a certain amount of arguments. I can make it fail at fewer
arguments if I make the length of each argument longer.
What sets the limit here? Is there a bug in Emacs on Windows or is it
a limitation of the OS? Is there is a known limitation in the total
length of all parameters?
Thanks!
/Mathias
next reply other threads:[~2013-03-10 13:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-10 13:02 Mathias Dahl [this message]
2013-03-10 13:19 ` call-process having problems with a big total length of arguments under Windows Mathias Dahl
2013-03-10 16:21 ` 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='CABrcCQ6YpiAKXoz1fvZn0gBpvtLse8cvbSOT=hKPs=yFemY4iw@mail.gmail.com' \
--to=mathias.dahl@gmail.com \
--cc=emacs-devel@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.