ruby-changes:16194
From: drbrain <ko1@a...>
Date: Sat, 5 Jun 2010 06:23:01 +0900 (JST)
Subject: [ruby-changes:16194] Ruby:r28158 (trunk): Clarification of what '*' matches. Patch by John Wells <john.wells at greatworx.com>
drbrain 2010-06-05 06:22:47 +0900 (Sat, 05 Jun 2010) New Revision: 28158 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=28158 Log: Clarification of what '*' matches. Patch by John Wells <john.wells at greatworx.com> Modified files: trunk/ChangeLog trunk/dir.c trunk/lib/irb/ruby-token.rb trunk/numeric.c Index: ChangeLog =================================================================== --- ChangeLog (revision 28157) +++ ChangeLog (revision 28158) @@ -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> + Fri Jun 4 10:46:33 2010 Nobuyoshi Nakada <nobu@r...> * ext/dl/cfunc.c (rb_dlcfunc_inspect): should taint the result. Index: lib/irb/ruby-token.rb =================================================================== --- lib/irb/ruby-token.rb (revision 28157) +++ lib/irb/ruby-token.rb (revision 28158) @@ -17,11 +17,6 @@ EXPR_DOT = :EXPR_DOT EXPR_CLASS = :EXPR_CLASS - # for ruby 1.4X - if !defined?(Symbol) - Symbol = Integer - end - class Token def initialize(seek, line_no, char_no) @seek = seek Index: dir.c =================================================================== --- dir.c (revision 28157) +++ dir.c (revision 28158) @@ -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. Index: numeric.c =================================================================== --- numeric.c (revision 28157) +++ numeric.c (revision 28158) @@ -1914,7 +1914,6 @@ * */ - /* * call-seq: * int.to_i -> integer -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/