bugGNU Wget - Bugs: bug #45789, wget: -O does not work as...

 
 

bug #45789: wget: -O does not work as described wrt timestamps

Submitter:  Noël Köthe <nok>
Submitted:  Tue 18 Aug 2015 08:44:34 AM UTC
   
 
Category:  Documentation Severity:  3 - Normal
Priority:  5 - Normal Status:  None
Privacy:  Public Assigned to:  None
Originator Name:  Open/Closed:  Open
Release:  None Operating System:  None
Reproducibility:  None Fixed Release:  None
Planned Release:  None Regression:  None
Work Required:  None Patch Included:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 18 Aug 2015 08:44:34 AM UTC, original submission:  

Hello,

a forwarded and with 1.16.3 reproducible bug report:

--8<--
wget's manpage says:

>       -O file
>       --output-document=file
> ...
>           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.
>
>           For this reason, -N (for timestamp-checking) is not supported in combination with -O: since file is always
>           newly created, it will always have a very new timestamp. A warning will be issued if this combination is
>           used.


but:

> $ date
> Do 13. Jun 17:12:06 CEST 2013
> $ wget http://www.debian.org
> ...
> $ wget -O test1 http://www.debian.org
> ...
> $ wget -O - http://www.debian.org > test2
> ...
> $ ls -l index.html test1 test2
> -rw-r--r-- 1 user group 14649 Jun 11 21:58 index.html
> -rw-r--r-- 1 user group 14649 Jun 11 21:58 test1
> -rw-r--r-- 1 user group 14649 Jun 13 17:12 test2


So the documentation is completely wrong here: '-O file' has the same timestamp of the last change of the web
page as the naked wget and behaves clearly different from '-O - > file' here.
--8<--

https://bugs.debian.org/712155

Additional there is a comment on this from former maintainer Micah in this report but I want to be sure and verifiy if you think if is or is not something which might be corrected.

thx

Noël Köthe <nok>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by nok (Submitted the item)
  • -email is unavailable- added by nok
  •  

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-08-18 nok Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code