[EMAIL PROTECTED] writes:

>>But it's as documented in the man page. The option is meant for
>>concatenating several pages into one big file, and you can't
>>meaningfully compare timestamps or file sizes in that case.
> 
> Ah, so "this behaviour is by design".  Even so, the behaviour is
> slightly non-obvious. Maybe for a single-file download,
> --output-document could _only_ change the resulting filename and not
> treat it as concatenating.

You're probably right.  The biggest problem is that `-O' is not a
convenient way to rename the output file -- it is much more
magical than that.

> How about this change ? It will prevent the output-document from being
> clobbered if it's a single-file download

You cannot assume that a non-recursive download is single-file.  Never
forget about:

    wget -O all URL1 URL2 URL3

Reply via email to