ruby-changes:11412
From: nobu <ko1@a...>
Date: Mon, 23 Mar 2009 14:32:37 +0900 (JST)
Subject: [ruby-changes:11412] Ruby:r23036 (trunk): * win32/win32.c (rb_w32_spawn): use original command if not found.
nobu 2009-03-23 14:32:26 +0900 (Mon, 23 Mar 2009) New Revision: 23036 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=23036 Log: * win32/win32.c (rb_w32_spawn): use original command if not found. Modified files: trunk/ChangeLog trunk/win32/win32.c Index: ChangeLog =================================================================== --- ChangeLog (revision 23035) +++ ChangeLog (revision 23036) @@ -1,3 +1,7 @@ +Mon Mar 23 14:32:23 2009 Nobuyoshi Nakada <nobu@r...> + + * win32/win32.c (rb_w32_spawn): use original command if not found. + Mon Mar 23 06:51:16 2009 Nobuyoshi Nakada <nobu@r...> * enc/depend (link_so): replaces $(TARGET) with basename of the Index: win32/win32.c =================================================================== --- win32/win32.c (revision 23035) +++ win32/win32.c (revision 23036) @@ -1055,7 +1055,6 @@ } 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 @@ } shell = dln_find_exe_r(shell, NULL, fbuf, sizeof(fbuf)); if (!shell) { - shell = comspec; + shell = p ? p : cmd; } else { len = strlen(shell); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/