# HG changeset patch # User Jason Rumney # Date 1196118208 0 # Node ID 217ec3ada789e14a2847e49bdb06df485054e9a1 # Parent cec7761d022affcbcbfb02e9710d98d3f5aa7099 (sys_spawnve): Quote args with wildcards. diff -r cec7761d022a -r 217ec3ada789 src/w32proc.c --- a/src/w32proc.c Mon Nov 26 15:37:00 2007 +0000 +++ b/src/w32proc.c Mon Nov 26 23:03:28 2007 +0000 @@ -781,7 +781,14 @@ 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)