summaryrefslogtreecommitdiff
path: root/src/w32proc.c
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>2007-12-06 09:51:45 +0000
committerMiles Bader <miles@gnu.org>2007-12-06 09:51:45 +0000
commit40f159a4ae7d081d4ced7c12a9eea261317c4ea9 (patch)
treed6c70803dc99aa1441ccd764033a34e3c6169158 /src/w32proc.c
parent64effd5514fcb3e902c99e7bc211b156be01bead (diff)
parentc6b18b69fc894b12b70b780ff864fb95ffdcf7ee (diff)
downloademacs-40f159a4ae7d081d4ced7c12a9eea261317c4ea9.tar.gz
Merge from emacs--devo--0
Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-294
Diffstat (limited to 'src/w32proc.c')
-rw-r--r--src/w32proc.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/w32proc.c b/src/w32proc.c
index 6c5f9b89f77..7ce01aa3e50 100644
--- a/src/w32proc.c
+++ b/src/w32proc.c
@@ -782,7 +782,14 @@ sys_spawnve (int mode, char *cmdname, char **argv, char **envp)
variable in their environment. */
char ppid_env_var_buffer[64];
char *extra_env[] = {ppid_env_var_buffer, NULL};
- char *sepchars = " \t";
+ /* These are the characters that cause an argument to need quoting.
+ Arguments with whitespace characters need quoting to prevent the
+ argument being split into two or more. Arguments with wildcards
+ are also quoted, for consistency with posix platforms, where wildcards
+ are not expanded if we run the program directly without a shell.
+ Some extra whitespace characters need quoting in Cygwin programs,
+ so this list is conditionally modified below. */
+ char *sepchars = " \t*?";
/* We don't care about the other modes */
if (mode != _P_NOWAIT)