From: Jason Rumney <jasonr@gnu.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: lekktu@gmail.com,
"Lennart Borgman \(gmail\)" <lennart.borgman@gmail.com>,
monnier@iro.umontreal.ca, emacs-devel@gnu.org
Subject: Re: Using `call-process-shell-command' in `process-lines'
Date: Mon, 26 Nov 2007 22:17:02 +0000 [thread overview]
Message-ID: <474B45DE.3080604@gnu.org> (raw)
In-Reply-To: <ubq9g3cfh.fsf@gnu.org>
Eli Zaretskii wrote:
> Anyway, I see now that I missed something important: we already have a
> wrapper for spawnve (w32proc.c:sys_spawnve), and it already tries to
> quote arguments.
But not in the presence of wildcards, only whitespace.
The version of find that I have (4.2.20 from GnuWin32) works with the
original test case, so I can't test this (other than to verify that find
still works OK after the patch), but it seems like the following patch
might help:
*** w32proc.c.~1.73.~ 2007-10-10 22:46:40.593750000 +0100
--- w32proc.c 2007-11-26 21:33:19.609375000 +0000
***************
*** 781,787 ****
variable in their environment. */
char ppid_env_var_buffer[64];
char *extra_env[] = {ppid_env_var_buffer, NULL};
! char *sepchars = " \t";
/* We don't care about the other modes */
if (mode != _P_NOWAIT)
--- 781,787 ----
variable in their environment. */
char ppid_env_var_buffer[64];
char *extra_env[] = {ppid_env_var_buffer, NULL};
! char *sepchars = " \t*?";
/* We don't care about the other modes */
if (mode != _P_NOWAIT)
***************
*** 882,888 ****
/* Cygwin apps needs quoting a bit more often */
if (escape_char == '"')
! sepchars = "\r\n\t\f '";
/* do argv... */
arglen = 0;
--- 882,888 ----
/* Cygwin apps needs quoting a bit more often */
if (escape_char == '"')
! sepchars = "\r\n\t\f '*?";
/* do argv... */
arglen = 0;
Diffs between working revision and workfile end here.
next prev parent reply other threads:[~2007-11-26 22:17 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-26 14:11 Using `call-process-shell-command' in `process-lines' Juanma Barranquero
2007-11-26 15:35 ` Stefan Monnier
2007-11-26 16:01 ` Juanma Barranquero
2007-11-26 16:43 ` Stefan Monnier
2007-11-26 17:01 ` Juanma Barranquero
2007-11-26 17:28 ` Lennart Borgman (gmail)
2007-11-26 17:59 ` Juanma Barranquero
2007-11-26 19:58 ` Lennart Borgman (gmail)
2007-11-26 20:50 ` Eli Zaretskii
2007-11-26 21:25 ` Lennart Borgman (gmail)
2007-11-26 22:04 ` Eli Zaretskii
2007-11-26 22:16 ` Lennart Borgman (gmail)
2007-11-26 22:22 ` Eli Zaretskii
2007-11-26 22:39 ` Lennart Borgman (gmail)
2007-11-27 4:08 ` Eli Zaretskii
2007-11-27 22:34 ` Lennart Borgman (gmail)
2007-11-26 22:17 ` Eli Zaretskii
2007-11-26 22:35 ` Lennart Borgman (gmail)
2007-11-26 20:38 ` Eli Zaretskii
2007-11-26 20:23 ` Eli Zaretskii
2007-11-26 20:30 ` Eli Zaretskii
2007-11-26 20:31 ` Lennart Borgman (gmail)
2007-11-26 20:51 ` Eli Zaretskii
2007-11-26 21:08 ` Lennart Borgman (gmail)
2007-11-26 21:18 ` Eli Zaretskii
2007-11-26 21:23 ` Lennart Borgman (gmail)
2007-11-26 21:49 ` Eli Zaretskii
2007-11-26 22:17 ` Jason Rumney [this message]
2007-11-26 22:29 ` Eli Zaretskii
2007-11-26 22:30 ` Jason Rumney
2007-11-27 0:24 ` Juanma Barranquero
2007-11-26 22:33 ` Eli Zaretskii
2007-11-26 23:01 ` Jason Rumney
2007-11-27 4:13 ` Eli Zaretskii
2007-11-26 20:35 ` Stefan Monnier
2007-11-26 20:59 ` Eli Zaretskii
2007-11-26 21:18 ` Lennart Borgman (gmail)
2007-11-26 16:04 ` Juanma Barranquero
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=474B45DE.3080604@gnu.org \
--to=jasonr@gnu.org \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=lekktu@gmail.com \
--cc=lennart.borgman@gmail.com \
--cc=monnier@iro.umontreal.ca \
/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.