зеркало из https://github.com/github/ruby.git
* win32/win32.c (rb_w32_spawn): `\'' is also quote character.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25367 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
aaa01efb95
Коммит
dd5c77f0c9
|
@ -1,3 +1,7 @@
|
|||
Fri Oct 16 16:09:01 2009 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* win32/win32.c (rb_w32_spawn): `\'' is also quote character.
|
||||
|
||||
Fri Oct 16 13:40:09 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* gc.h (rb_gc_debug_body): constified.
|
||||
|
|
|
@ -1054,7 +1054,7 @@ rb_w32_spawn(int mode, const char *cmd, const char *prog)
|
|||
cmd = tmp;
|
||||
}
|
||||
else {
|
||||
int len = 0, quote = (*cmd == '"') ? '"' : 0;
|
||||
int len = 0, quote = (*cmd == '"') ? '"' : (*cmd == '\'') ? '\'' : 0;
|
||||
for (prog = cmd + !!quote;; prog = CharNext(prog)) {
|
||||
if (!*prog) {
|
||||
len = prog - cmd;
|
||||
|
|
Загрузка…
Ссылка в новой задаче