[前][次][番号順一覧][スレッド一覧]

ruby-changes:25390

From: zzak <ko1@a...>
Date: Sat, 3 Nov 2012 13:50:19 +0900 (JST)
Subject: [ruby-changes:25390] zzak:r37447 (trunk): * dir.c (Dir#glob):

zzak	2012-11-03 13:47:49 +0900 (Sat, 03 Nov 2012)

  New Revision: 37447

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=37447

  Log:
    * dir.c (Dir#glob):
      Documentation for pattern section, backslash subsection
      Patch by Eric Bouchut
      [ruby-core#48528] [Bug #7230]

  Modified files:
    trunk/ChangeLog
    trunk/dir.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 37446)
+++ ChangeLog	(revision 37447)
@@ -1,5 +1,12 @@
 Sat Nov  3 13:26:00 2012  Zachary Scott  <zachary@z...>
 
+	* 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  <zachary@z...>
+
 	* io.c (IO#new):
 	  Documentation for IO#open modes and formatting
 	  [ruby-core#48052] [Bug #7179]
Index: dir.c
===================================================================
--- dir.c	(revision 37446)
+++ dir.c	(revision 37447)
@@ -1782,7 +1782,7 @@
  *                          <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 "{*,.*}".
+ *                          you must use something like <code>"{*,.*}"</code>.
  *  <code>**</code>::       Matches directories recursively.
  *  <code>?</code>::        Matches any one character. Equivalent to
  *                          <code>/.{1}/</code> in regexp.
@@ -1796,10 +1796,11 @@
  *                          More than two literals may be specified.
  *                          Equivalent to pattern alternation in
  *                          regexp.
- *  <code> \ </code>::      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
+ *  <code> \\ </code>::     Escapes the next metacharacter.
+ *                          Note that this means you cannot use backslash
+ *                          in windows as part of a glob,
+ *                          i.e. <code>Dir["c:\\foo*"]</code> will not work,
+ *                          use <code>Dir["c:/foo*"]</code> instead.
  *
  *     Dir["config.?"]                     #=> ["config.h"]
  *     Dir.glob("config.?")                #=> ["config.h"]

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]