Package: wget Version: 1.13.4-3 Severity: normal Hi all,
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. Cheers, Christopher -- System Information: Debian Release: 7.0 APT prefers oldstable-proposed-updates APT policy: (500, 'oldstable-proposed-updates'), (500, 'stable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.2.0-4-amd64 (SMP w/2 CPU cores) Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1) Shell: /bin/sh linked to /bin/dash Versions of packages wget depends on: ii dpkg 1.16.10 ii install-info 4.13a.dfsg.1-10 ii libc6 2.13-38 ii libgcrypt11 1.5.0-5 ii libgnutls26 2.12.20-7 ii libgpg-error0 1.10-3.1 ii libidn11 1.25-2 ii zlib1g 1:1.2.7.dfsg-13 wget recommends no packages. wget suggests no packages. -- debconf-show failed -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org