mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* win32/win32.c (rb_w32_spawn): use original command if not found.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23036 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
15265f8be6
commit
2c772139b6
2 changed files with 5 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
|||
Mon Mar 23 14:32:23 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* win32/win32.c (rb_w32_spawn): use original command if not found.
|
||||
|
||||
Mon Mar 23 06:51:16 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* enc/depend (link_so): replaces $(TARGET) with basename of the
|
||||
|
|
|
@ -1055,7 +1055,6 @@ rb_w32_spawn(int mode, const char *cmd, const char *prog)
|
|||
}
|
||||
else {
|
||||
int len = 0, quote = (*cmd == '"') ? '"' : 0;
|
||||
const char *comspec = shell;
|
||||
for (prog = cmd + !!quote;; prog = CharNext(prog)) {
|
||||
if (!*prog) {
|
||||
len = prog - cmd;
|
||||
|
@ -1078,7 +1077,7 @@ rb_w32_spawn(int mode, const char *cmd, const char *prog)
|
|||
}
|
||||
shell = dln_find_exe_r(shell, NULL, fbuf, sizeof(fbuf));
|
||||
if (!shell) {
|
||||
shell = comspec;
|
||||
shell = p ? p : cmd;
|
||||
}
|
||||
else {
|
||||
len = strlen(shell);
|
||||
|
|
Loading…
Add table
Reference in a new issue