From 86bb0af7ea3b50f72e6845a6f5f64cb1b23fd279 Mon Sep 17 00:00:00 2001 From: usa Date: Tue, 1 Mar 2011 07:23:37 +0000 Subject: * win32/win32.c: revert r30987 because it causes some failures in test-all, especially webrick. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30995 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- win32/win32.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'win32/win32.c') diff --git a/win32/win32.c b/win32/win32.c index 1e658de156..99802d07d0 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -851,9 +851,6 @@ is_internal_cmd(const char *cmd, int nt) { char cmdname[9], *b = cmdname, c; - if (strchr(cmd, '^')) - return 1; - do { if (!(c = *cmd++)) return 0; } while (isspace(c)); @@ -1141,12 +1138,6 @@ rb_w32_spawn(int mode, const char *cmd, const char *prog) sprintf(tmp, "%s -c \"%s\"", shell, cmd); cmd = tmp; } - else if ((shell = getenv("COMSPEC")) && - strchr(cmd, '"')) { - char *tmp = ALLOCV(v, strlen(shell) + strlen(cmd) + sizeof(" /c ")); - sprintf(tmp, "%s /c %s", shell, cmd); - cmd = tmp; - } else if ((shell = getenv("COMSPEC")) && (nt = !is_command_com(shell), (redir < 0 ? has_redirection(cmd) : redir) || -- cgit v1.2.3