ruby-changes:16304
From: yugui <ko1@a...>
Date: Fri, 11 Jun 2010 13:21:28 +0900 (JST)
Subject: [ruby-changes:16304] Ruby:r28275 (ruby_1_9_2): merges r28158 from trunk into ruby_1_9_2.
yugui 2010-06-11 13:21:07 +0900 (Fri, 11 Jun 2010) New Revision: 28275 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=28275 Log: merges r28158 from trunk into ruby_1_9_2. -- Clarification of what '*' matches. Patch by John Wells <john.wells at greatworx.com> Modified files: branches/ruby_1_9_2/ChangeLog branches/ruby_1_9_2/dir.c Index: ruby_1_9_2/ChangeLog =================================================================== --- ruby_1_9_2/ChangeLog (revision 28274) +++ ruby_1_9_2/ChangeLog (revision 28275) @@ -1,3 +1,8 @@ +Sat Jun 5 06:20:57 2010 Eric Hodel <drbrain@s...> + + * dir.c: Clarification of what '*' matches. Patch by John Wells + <john.wells at greatworx.com> + Thu Jun 3 00:58:45 2010 Aaron Patterson <aaron@t...> * ext/dl/lib/dl/cparser.rb (parse_ctype): add backwards compatibility Index: ruby_1_9_2/dir.c =================================================================== --- ruby_1_9_2/dir.c (revision 28274) +++ ruby_1_9_2/dir.c (revision 28275) @@ -1741,7 +1741,10 @@ * <code>\*c\*</code> will match all files that * have <code>c</code> in them (including at * the beginning or end). Equivalent to - * <code>/ .* /x</code> in regexp. + * <code>/ .* /x</code> 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 "{*,.*}". * <code>**</code>:: Matches directories recursively. * <code>?</code>:: Matches any one character. Equivalent to * <code>/.{1}/</code> in regexp. -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/