From 79aac054745e7f0180c2e3948a6553996b3e7c62 Mon Sep 17 00:00:00 2001 From: drbrain Date: Fri, 4 Jun 2010 21:22:47 +0000 Subject: Clarification of what '*' matches. Patch by John Wells git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28158 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- dir.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'dir.c') 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. -- cgit v1.2.3