From 33e861ba3945aaf7fea2b740259d7409e57193bb Mon Sep 17 00:00:00 2001 From: yugui Date: Fri, 11 Jun 2010 04:21:07 +0000 Subject: [PATCH] merges r28158 from trunk into ruby_1_9_2. -- Clarification of what '*' matches. Patch by John Wells git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28275 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ dir.c | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 2f45eabb17..853b08465a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sat Jun 5 06:20:57 2010 Eric Hodel + + * dir.c: Clarification of what '*' matches. Patch by John Wells + + Thu Jun 3 00:58:45 2010 Aaron Patterson * ext/dl/lib/dl/cparser.rb (parse_ctype): add backwards compatibility diff --git a/dir.c b/dir.c index fa7cdd03ea..cab0cdcc07 100644 --- a/dir.c +++ b/dir.c @@ -1741,7 +1741,10 @@ dir_s_aref(int argc, VALUE *argv, VALUE obj) * \*c\* will match all files that * have c in them (including at * the beginning or end). Equivalent to - * / .* /x in regexp. + * / .* /x in regexp. Note, this + * will not match Unix-like hidden files (dotfiles). + * In order to include those in the match results, + * you must use something like "{*,.*}". * **:: Matches directories recursively. * ?:: Matches any one character. Equivalent to * /.{1}/ in regexp.