0001-Fixes-typo-in-Dir-glob-pattern-documentation.patch

Eric Bouchut, 10/29/2012 01:53 AM

Download (2.02 KB)

View differences:

dir.c
1782 1782
 *                          <code>/ .* /x</code> in regexp. Note, this
1783 1783
 *                          will not match Unix-like hidden files (dotfiles).
1784 1784
 *                          In order to include those in the match results,
1785
 *                          you must use something like "{*,.*}".
1785
 *                          you must use something like <code>"{*,.*}"</code>.
1786 1786
 *  <code>**</code>::       Matches directories recursively.
1787 1787
 *  <code>?</code>::        Matches any one character. Equivalent to
1788 1788
 *                          <code>/.{1}/</code> in regexp.
......
1796 1796
 *                          More than two literals may be specified.
1797 1797
 *                          Equivalent to pattern alternation in
1798 1798
 *                          regexp.
1799
 *  <code> \ </code>::      Escapes the next metacharacter.
1800
 *                          Note that this means you cannot use backslash in windows
1801
 *                          as part of a glob, i.e. Dir["c:\\foo*"] will not work
1802
 *                          use Dir["c:/foo*"] instead
1799
 *  <code> \\ </code>::     Escapes the next metacharacter.
1800
 *                          Note that this means you cannot use backslash
1801
 *                          in windows as part of a glob,
1802
 *                          i.e. <code>Dir["c:\\foo*"]</code> will not work,
1803
 *                          use <code>Dir["c:/foo*"]</code> instead.
1803 1804
 *
1804 1805
 *     Dir["config.?"]                     #=> ["config.h"]
1805 1806
 *     Dir.glob("config.?")                #=> ["config.h"]
1806
-