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 | f3615ecc42d455d4453410a1c43401b06da46d38 (patch) | |
tree | b744c10b48a8a19a6771289d76c81c4b2d509202 /dir.c | |
parent | 0477d9674e823f7381c722c01e663400b4417163 (diff) |
* dir.c (range): Cancel previous change. More discussion is needed.
git-svn-id: svn+ssh://ci.ruby-lang.org/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)) |