[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #61050] Early abort should not write 0 Byte output file
From: |
Darshit Shah |
Subject: |
[bug #61050] Early abort should not write 0 Byte output file |
Date: |
Wed, 8 Sep 2021 12:03:22 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; rv:91.0) Gecko/20100101 Firefox/91.0 |
Update of bug #61050 (project wget):
Status: None => Invalid
Open/Closed: Open => Closed
_______________________________________________________
Follow-up Comment #1:
Sorry, this is documented behaviour and will not be changed in Wget. The
manual explicitly states that the -O option is equivalent to the shell
redirection operator ">". Thus, creating / truncating an existing file to 0
bytes immediately is the correct behaviour.
I completely understand where you are coming from. I don't like this either.
But this has been the documented behaviour for many many years now and
multiple scripts rely on it to be so. As a result, the default will not be
changed in the interests of backwards compatibility.
GNU Wget2, the next major version of Wget changes the meaning of -O and
functions exactly as you described / expected it to. It was the first breaking
change I introduced in there :)
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?61050>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug #61050] Early abort should not write 0 Byte output file,
Darshit Shah <=