>>>>> "Hrvoje" == Hrvoje Niksic <[EMAIL PROTECTED]> writes:
Hrvoje> [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.
Hrvoje> You're probably right. The biggest problem is that `-O' is not a
Hrvoje> convenient way to rename the output file -- it is much more
Hrvoje> magical than that.
>> How about this change ? It will prevent the output-document from being
>> clobbered if it's a single-file download
Hrvoje> You cannot assume that a non-recursive download is
Hrvoje> single-file. Never forget about:
Thanks Hrvoje, thanks Ian, I'll just not use -O where it's not needed.
Works well enough for me.
It would be nice though if
wget -O all.html .../all.html
where exactly equivalent to
wget .../all.html
Best regards,
Adrian
Hrvoje> wget -O all URL1 URL2 URL3
--
Adrian Aichner
mailto:[EMAIL PROTECTED]
http://www.xemacs.org/