Actions
Bug #1378
closedDir.glob should not convert entries on UNIX
Bug #1378:
Dir.glob should not convert entries on UNIX
Description
=begin
ujihisaといいます。
r23171 から、bracketを含むDir.globがうまく動いていませんでした。
$ ./ruby -e "p Dir.glob('/[ae]tc/')"
[]
以下はパッチです。これを当てると、 mspec ./spec/rubyspec/core/dir/glob_spec.rb に通るようになります。
diff --git a/dir.c b/dir.c
index 14b4872..dab55f7 100644
--- a/dir.c
+++ b/dir.c
@@ -136,9 +136,12 @@ bracket(
else {
if (ok) continue;
if (r <= (send-s) && memcmp(p, s, r) == 0) continue;
-
}
ok = 1;
=end
Updated by nobu (Nobuyoshi Nakada) over 17 years ago
- Status changed from Open to Closed
- % Done changed from 0 to 100
=begin
Applied in changeset r23189.
=end
Actions