-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Arkadiusz Miskiewicz wrote: > Hi, > > wget creates zero sized file when some error from remote server is catched. > This sounds like bug. IMO it shouldn't create such file.
> [ar...@t400 ~/test]$ wget http://ble.pl/dfsfddf -O crap For better or for worse, Wget's -O option has always behaved exactly like a shell redirection (with the exception that -nc actually works as expected with it) - creating the file before anything else takes place (see the manual). After a long history of this behavior, changing it now is likely to break existing scripts that rely upon it, so we don't. If we want an option with more intuitive (IMO) behavior, we need to write it as a new and distinct option. Patches encouraged. - -- Micah J. Cowan Programmer, musician, typesetting enthusiast, gamer. Maintainer of GNU Wget and GNU Teseq http://micah.cowan.name/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkrBEnkACgkQ7M8hyUobTrF18QCfYJgwo7u9upfWMXCSQUVx2knb 1RsAn14n6tcVV2Lni+QyCxpDPZQTcOCx =6Sz/ -----END PGP SIGNATURE-----
