From: Matt Armstrong Date: 2002-02-11T06:14:37+09:00 Subject: [patch] Ruby 1.7 dir.c, get rid of warning I don't think Dir::glob should warn (in the "ruby -w" sense) when it can't find any files that match the glob pattern. Correct programs can routinely call Dir::glob with patterns that do not match any files. Index: dir.c =================================================================== RCS file: /src/ruby/dir.c,v retrieving revision 1.58 diff -u -r1.58 dir.c --- dir.c 2002/01/25 08:22:04 1.58 +++ dir.c 2002/02/10 21:13:53 @@ -939,9 +939,6 @@ if (buf != buffer) free(buf); if (ary) { - if (RARRAY(ary)->len == 0) { - rb_warning("no matches found: %s", RSTRING(str)->ptr); - } return ary; } return Qnil; -- matt