diff options
author | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-06-04 21:22:47 +0000 |
---|---|---|
committer | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-06-04 21:22:47 +0000 |
commit | 79aac054745e7f0180c2e3948a6553996b3e7c62 (patch) | |
tree | 634551ccaf9e4316d7def4507f91374d7a96d6b8 /dir.c | |
parent | c052958912009e52af0cd4261684783af5b4a5a3 (diff) | |
download | ruby-79aac054745e7f0180c2e3948a6553996b3e7c62.tar.gz |
Clarification of what '*' matches. Patch by John Wells <john.wells at greatworx.com>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28158 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'dir.c')
-rw-r--r-- | dir.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1741,7 +1741,10 @@ dir_s_aref(int argc, VALUE *argv, VALUE obj) * <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. |