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

 
 

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

Submitted by:  Noël Köthe <nok>
Submitted on:  Tue 18 Aug 2015 08:44:34 AM UTC  
 
Category: DocumentationSeverity: 3 - Normal
Priority: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Originator Name: Open/Closed: Open
Release: NoneOperating System: None
Reproducibility: NoneFixed Release: None
Planned Release: NoneRegression: None
Work Required: NonePatch Included: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 18 Aug 2015 08:44:34 AM UTCnokCarbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup1