mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* win32/win32.c (isInternalCmd): stupid miss.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4518 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
30f5a38b46
commit
b6367d64f4
2 changed files with 5 additions and 9 deletions
12
ChangeLog
12
ChangeLog
|
@ -1,20 +1,16 @@
|
|||
Sat Sep 6 00:21:59 2003 Nobuyoshi Nakada <nobu.nokada@softhome.net>
|
||||
Sat Sep 6 00:36:20 2003 Nobuyoshi Nakada <nobu.nokada@softhome.net>
|
||||
|
||||
* Makefile.in (test): phony target.
|
||||
|
||||
* lib/mkmf.rb (have_library, find_library): configure by library
|
||||
name.
|
||||
|
||||
* lib/optparse.rb (OptionParser#order, #permute, #parse): allow an
|
||||
array as argument.
|
||||
|
||||
* test/ruby/test_*.rb: moved invariants to left side in
|
||||
assert_equal, and use assert_nil, assert_raises and so on.
|
||||
|
||||
Sat Sep 6 00:00:20 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* lib/mkmf.rb (have_library, find_library): configure by library
|
||||
name.
|
||||
|
||||
Sat Sep 6 00:00:20 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* win32/win32.c (isInternalCmd): distinguish command.com and
|
||||
cmd.exe.
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue