bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-wget] [bug #45789] wget: -O does not work as described wrt timestam


From: NoëlKöthe
Subject: [Bug-wget] [bug #45789] wget: -O does not work as described wrt timestamps
Date: Tue, 18 Aug 2015 08:44:35 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0 Iceweasel/38.1.0

URL:
  <http://savannah.gnu.org/bugs/?45789>

                 Summary: wget: -O does not work as described wrt timestamps
                 Project: GNU Wget
            Submitted by: nok
            Submitted on: Di 18 Aug 2015 10:44:34 CEST
                Category: Documentation
                Severity: 3 - Normal
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: None
        Operating System: None
         Reproducibility: None
           Fixed Release: None
         Planned Release: None
              Regression: None
           Work Required: None
          Patch Included: None

    _______________________________________________________

Details:

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




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?45789>

_______________________________________________
  Nachricht gesendet von/durch Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]