diff options
| author | ocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-03-08 12:03:23 +0000 |
|---|---|---|
| committer | ocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-03-08 12:03:23 +0000 |
| commit | b7ec4cf720c236d2d5d129ddf96edd062116819f (patch) | |
| tree | b744c10b48a8a19a6771289d76c81c4b2d509202 /dir.c | |
| parent | 136bec0d9823088a3dd888eae62ee57f5e066e50 (diff) | |
| download | ruby-b7ec4cf720c236d2d5d129ddf96edd062116819f.tar.gz ruby-b7ec4cf720c236d2d5d129ddf96edd062116819f.tar.xz ruby-b7ec4cf720c236d2d5d129ddf96edd062116819f.zip | |
* dir.c (range): Cancel previous change. More discussion is needed.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@5925 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'dir.c')
| -rw-r--r-- | dir.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -97,7 +97,6 @@ range(pat, test, flags) char test; int flags; { - char *first = pat; int not, ok = 0; int nocase = flags & FNM_CASEFOLD; int escape = !(flags & FNM_NOESCAPE); @@ -120,13 +119,13 @@ range(pat, test, flags) pat++; cend = pat[1]; if (!cend) - break; + return 0; pat += 2; } if (downcase(cstart) <= test && test <= downcase(cend)) ok = 1; } - return test == '[' ? first : 0; + return 0; } #define ISDIRSEP(c) (pathname && isdirsep(c)) |
