From c1fdebc8d649060192cd04c7fa50190421ce4c14 Mon Sep 17 00:00:00 2001 From: Darshit Shah Date: Sun, 10 May 2015 10:46:03 +0530 Subject: [PATCH] Update documentation about bahviour of -c * docs/wget.texi: -c will restart download from scratch if server does not support RANGE. Reported-By: David Chavez http://stackoverflow.com/questions/30147332/unexpected-behavior-of-wget --- doc/wget.texi | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/doc/wget.texi b/doc/wget.texi index 689fb97..426d3c3 100644 --- a/doc/wget.texi +++ b/doc/wget.texi @@ -666,13 +666,11 @@ Without @samp{-c}, the previous example would just download the remote file to @file{ls-lR.Z.1}, leaving the truncated @file{ls-lR.Z} file alone. -Beginning with Wget 1.7, if you use @samp{-c} on a non-empty file, and -it turns out that the server does not support continued downloading, -Wget will refuse to start the download from scratch, which would -effectively ruin existing contents. If you really want the download to -start from scratch, remove the file. +If you use @samp{-c} on a non-empty file, and the server does not support +continued downloading, Wget will restart the download from scratch and overwrite +the existing file entirely. -Also beginning with Wget 1.7, if you use @samp{-c} on a file which is of +Beginning with Wget 1.7, if you use @samp{-c} on a file which is of equal size as the one on the server, Wget will refuse to download the file and print an explanatory message. The same happens when the file is smaller on the server than locally (presumably because it was changed -- 2.4.0