1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

add/explain quoting of wildcard patterns in wget.texi

This commit is contained in:
Tim Ruehsen 2013-10-06 21:45:31 +02:00 committed by Giuseppe Scrivano
parent 7e85e9509e
commit 1dec2028d0
2 changed files with 9 additions and 1 deletions

View 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> 2013-09-04 Tim Ruehsen <tim.ruehsen@gmx.de>
* sample.wgetrc: added "secureprotocol" example * sample.wgetrc: added "secureprotocol" example

View File

@ -2071,6 +2071,8 @@ accept or reject (@pxref{Types of Files}). Note that if
any of the wildcard characters, @samp{*}, @samp{?}, @samp{[} or any of the wildcard characters, @samp{*}, @samp{?}, @samp{[} or
@samp{]}, appear in an element of @var{acclist} or @var{rejlist}, @samp{]}, appear in an element of @var{acclist} or @var{rejlist},
it will be treated as a pattern, rather than a suffix. 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} @item --accept-regex @var{urlregex}
@itemx --reject-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 Ignore case when matching files and directories. This influences the
behavior of -R, -A, -I, and -X options, as well as globbing behavior of -R, -A, -I, and -X options, as well as globbing
implemented when downloading from FTP sites. For example, with this 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 @item -H
@itemx --span-hosts @itemx --span-hosts