]> sjero.net Git - wget/commitdiff
add/explain quoting of wildcard patterns in wget.texi
authorTim Ruehsen <tim.ruehsen@gmx.de>
Sun, 6 Oct 2013 19:45:31 +0000 (21:45 +0200)
committerGiuseppe Scrivano <gscrivan@redhat.com>
Sun, 6 Oct 2013 21:52:22 +0000 (23:52 +0200)
doc/ChangeLog
doc/wget.texi

index 862b6f3b0825b023bdf814a71dd5152c39bbc658..3b057561a3b8f9d63b7d7a1da51ac5c21b22911e 100644 (file)
@@ -1,3 +1,7 @@
+2013-10-06  Tim Ruehsen  <tim.ruehsen@gmx.de>
+
+       * wget.texi: add/explain quoting of wildcard patterns
+
 2013-09-04  Tim Ruehsen  <tim.ruehsen@gmx.de>
 
        * sample.wgetrc: added "secureprotocol" example
 2013-09-04  Tim Ruehsen  <tim.ruehsen@gmx.de>
 
        * sample.wgetrc: added "secureprotocol" example
index 0b867758d711971d1ee736e6f82b5f9b7f0d7a29..4a1f7f1ed62c889287a5e7992bf5dd899a44801f 100644 (file)
@@ -2071,6 +2071,8 @@ accept or reject (@pxref{Types of Files}). Note that if
 any of the wildcard characters, @samp{*}, @samp{?}, @samp{[} or
 @samp{]}, appear in an element of @var{acclist} or @var{rejlist},
 it will be treated as a pattern, rather than a suffix.
 any of the wildcard characters, @samp{*}, @samp{?}, @samp{[} or
 @samp{]}, appear in an element of @var{acclist} or @var{rejlist},
 it will be treated as a pattern, rather than a suffix.
+In this case, you have to enclose the pattern into quotes to prevent
+your shell from expanding it, like in @samp{-A "*.mp3"} or @samp{-A '*.mp3'}.
 
 @item --accept-regex @var{urlregex}
 @itemx --reject-regex @var{urlregex}
 
 @item --accept-regex @var{urlregex}
 @itemx --reject-regex @var{urlregex}
@@ -2128,8 +2130,10 @@ dedicated @samp{--page-requisites} option.
 Ignore case when matching files and directories.  This influences the
 behavior of -R, -A, -I, and -X options, as well as globbing
 implemented when downloading from FTP sites.  For example, with this
 Ignore case when matching files and directories.  This influences the
 behavior of -R, -A, -I, and -X options, as well as globbing
 implemented when downloading from FTP sites.  For example, with this
-option, @samp{-A *.txt} will match @samp{file1.txt}, but also
+option, @samp{-A "*.txt"} will match @samp{file1.txt}, but also
 @samp{file2.TXT}, @samp{file3.TxT}, and so on.
 @samp{file2.TXT}, @samp{file3.TxT}, and so on.
+The quotes in the example are to prevent the shell from expanding the
+pattern.
 
 @item -H
 @itemx --span-hosts
 
 @item -H
 @itemx --span-hosts