Issue #3612 has been updated by Heesob Park.


Here is a patch for this issue.


--- win32.c     2010-07-26 17:36:18.980422535 +0900
+++ win32.c.new 2010-07-26 17:37:47.582469991 +0900
@@ -1136,10 +1136,7 @@
                }
            }
            shell = dln_find_exe_r(shell, NULL, fbuf, sizeof(fbuf));
-           if (!shell) {
-               shell = p ? p : cmd;
-           }
-           else {
+           if (shell) {
                len = strlen(shell);
                if (strchr(shell, ' ')) quote = -1;
                if (shell == fbuf) {


----------------------------------------
http://redmine.ruby-lang.org/issues/show/3612

----------------------------------------
http://redmine.ruby-lang.org