Comment 7 for bug 1475640

Revision history for this message
Niall Bunting (niall-bunting) wrote :

I agree the current behavior is not particularly great, especially as it returns a 0, whilst not actually being a success. I don't think we should download data just to throw it away though if a file is not specified.

However if you look at the behavior of a few other commands such as wget it does not do what the user expects it to do either.

In the case of wget:
wget google.com
Saving to index.html

wget google.com > test.com
Saving to index.html
//also creates an empty test.com

In many cases the downloading of something may not be very helpful in the users terminal. We should try to give the behavior that is most useful to the user. And i am unsure with a large image that showing that to the user would be very helpful especially as outside of the test case the data would not mean much to the user.