News for hackers. Stuff that matters.
Re:The Rust community's crate host by sschueller on Thursday November 20, 2014 @03:59PM (#8638099)
Does curl return a partial output if a connection dies?

What if it dies and the last thing it got was "rm - fr /" but not the rest after the / ?

Re:The Rust community's crate host by vertex-four on Thursday November 20, 2014 @04:35PM (#8638299)
Most shell scripts used like this are implemented by defining a function, then calling it - so if it fails downloading, all that happens is a syntax error as the code never actually gets run.
Re:The Rust community's crate host by erickt on Thursday November 20, 2014 @08:56PM (#8639390)
That's a good point. I filed https://github.com/rust-lang/rust/issues/19168 to get it fixed.
Re:The Rust community's crate host by aidanhs on Thursday November 20, 2014 @05:03PM (#8638458)
Never thought about this, interesting question.

You can try this equivalent, killing the server when it tells you to - https://gist.github.com/aidanhs/e40417381e9aecb87b35. It prints '/', i.e. would remove your root directory if it was an `rm` command.

Won't be doing that again then.

Re:The Rust community's crate host by steveklabnik on Thursday November 20, 2014 @05:05PM (#8638465)
Remember that these days, with GNU rm, you have to pass in `--no-preserve-root` to actually `rm -rf /`. Attempting to remove something in the home directory and getting a `rm -rf /home/username/` would still be pretty bad.
Re:The Rust community's crate host by ema on Friday November 21, 2014 @10:46AM (#8641736)
The chance that the connection dies at exactly this moment is negligible compared to the chance that your hard drive dies. Worry about that.