George R Goffe <[email protected]> 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

Reply via email to