[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-wget] A possible bug with wget 1.16.1?
From: |
Giuseppe Scrivano |
Subject: |
Re: [Bug-wget] A possible bug with wget 1.16.1? |
Date: |
Thu, 05 Mar 2015 11:08:14 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) |
George R Goffe <address@hidden> writes:
> Hi,
> First of all, I have built this wget from your repositories AND used the
> "latest" GCC (with the intention of "furthering the cause" of open source
> software by reporting bugs. So far I have found none... until, possibly, now.
> I'm using wget with the "-c" option and the "-O" option to rename the
> output file on the fly. When I have to restart the wget, the output
> file specified by the "-O" option is rewritten from byte 0. I don't
> see anything about being able to use the "-c" option in conjunction
> with the "-O" option. Am I missing something here? Is this a bug? An
> oversight?
> Regards and THANKS for the BEYOND COOL CODE!
> George...
Thanks for your report.
This is another case that should be added to the documentation, the -O
is not really meant to manage it. As it is already stated:
Use of '-O' is _not_ intended to mean simply "use the name FILE
instead of the one in the URL;" rather, it is analogous to shell
redirection: 'wget -O file http://foo' is intended to work like
'wget -O - http://foo > file'; 'file' will be truncated
immediately, and _all_ downloaded content will be written there.
The same explanation holds for the -c case.
Regards,
Giuseppe