bug-wget
[Top][All Lists]
Advanced

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

Re: [Bug-wget] wget creates zero sized file in case of error


From: Micah Cowan
Subject: Re: [Bug-wget] wget creates zero sized file in case of error
Date: Mon, 28 Sep 2009 12:46:01 -0700
User-agent: Thunderbird 2.0.0.23 (X11/20090817)

-----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.

> address@hidden ~/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-----




reply via email to

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