diff --git a/ChangeLog b/ChangeLog index d9f8676a4b..957d55b2dd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +Sat Nov 3 13:26:00 2012 Zachary Scott + + * dir.c (Dir#glob): + Documentation for pattern section, backslash subsection + Patch by Eric Bouchut + [ruby-core#48528] [Bug #7230] + Sat Nov 3 13:26:00 2012 Zachary Scott * io.c (IO#new): diff --git a/dir.c b/dir.c index 1a375ea85d..11e3028813 100644 --- a/dir.c +++ b/dir.c @@ -1782,7 +1782,7 @@ dir_s_aref(int argc, VALUE *argv, VALUE obj) * / .* /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 "{*,.*}". + * you must use something like "{*,.*}". * **:: Matches directories recursively. * ?:: Matches any one character. Equivalent to * /.{1}/ in regexp. @@ -1796,10 +1796,11 @@ dir_s_aref(int argc, VALUE *argv, VALUE obj) * More than two literals may be specified. * Equivalent to pattern alternation in * regexp. - * \ :: Escapes the next metacharacter. - * Note that this means you cannot use backslash in windows - * as part of a glob, i.e. Dir["c:\\foo*"] will not work - * use Dir["c:/foo*"] instead + * \\ :: Escapes the next metacharacter. + * Note that this means you cannot use backslash + * in windows as part of a glob, + * i.e. Dir["c:\\foo*"] will not work, + * use Dir["c:/foo*"] instead. * * Dir["config.?"] #=> ["config.h"] * Dir.glob("config.?") #=> ["config.h"]