[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-wget] files changed to directories!
From: |
e-letter |
Subject: |
Re: [Bug-wget] files changed to directories! |
Date: |
Sun, 6 Oct 2013 14:01:14 +0100 |
On 05/10/2013, Tim Rühsen <address@hidden> wrote:
>
> Please be so kind and post the output of
> wget --version
112
>
> But if your shell expands *.mp3, you should have seen error messages.
Probably, but ignored the terminal output and continued to read
something else. ;)
> In that case, try
> wget -d -r -A "*.mp3" http://url/to/mp3/files
>
> But that has nothing to do with Wget. It is a general problem in
> understanding
> how shells work. Shell wildcard expansion often hits the novice :-(
>
> What do you think how we can help novices ?
> Maybe we should explicitely warn in the docs of -A/-R about shell wildcard
> expansion ?
>
The manual contains the following:
...
Recursive Accept/Reject Options
-A acclist --accept acclist
-R rejlist --reject rejlist
Specify comma-separated lists of file name suffixes or
patterns to accept or reject. Note that if any of
the wildcard characters, *, ?, [ or ], appear in an element
of acclist or rejlist, it will be treated as a
pattern, rather than a suffix.
...
Perhaps explanation of the need to enclose regular expressions within
quotation marks should be added?
Similarly,
...
--ignore-case
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,
-A *.txt will match file1.txt, but also file2.TXT,
file3.TxT, and so on.
...
does not show the use of quotation marks.