From: Tim Ruehsen Date: Sun, 6 Oct 2013 19:45:31 +0000 (+0200) Subject: add/explain quoting of wildcard patterns in wget.texi X-Git-Tag: v1.15~19 X-Git-Url: http://sjero.net/git/?p=wget;a=commitdiff_plain;h=1dec2028d04625b997aada8781df06c1fc9f978d add/explain quoting of wildcard patterns in wget.texi --- diff --git a/doc/ChangeLog b/doc/ChangeLog index 862b6f3b..3b057561 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -1,3 +1,7 @@ +2013-10-06 Tim Ruehsen + + * wget.texi: add/explain quoting of wildcard patterns + 2013-09-04 Tim Ruehsen * sample.wgetrc: added "secureprotocol" example diff --git a/doc/wget.texi b/doc/wget.texi index 0b867758..4a1f7f1e 100644 --- a/doc/wget.texi +++ b/doc/wget.texi @@ -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. +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} @@ -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 -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. +The quotes in the example are to prevent the shell from expanding the +pattern. @item -H @itemx --span-hosts