From b6367d64f400ee44eb2baf309924949e987d6d16 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 5 Sep 2003 15:36:21 +0000 Subject: * win32/win32.c (isInternalCmd): stupid miss. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4518 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- win32/win32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'win32') diff --git a/win32/win32.c b/win32/win32.c index 41a2d6aaa2..b7827218ad 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -552,7 +552,7 @@ isInternalCmd(const char *cmd, const char *interp) char cmdname[9], *b = cmdname, c, **nm; i = strlen(interp) - 11; - if ((i == 0 || i > 0 && isdirsep(interp[i])) && + if ((i == 0 || i > 0 && isdirsep(interp[i-1])) && strcasecmp(interp+i, "command.com") == 0) { nt = 0; } -- cgit v1.2.1