Hacker News new | ask | show | jobs
by obi1kenobi 778 days ago
The shell script starts with the following comment:

    # All the code is wrapped in a main function that gets called at the
    # bottom of the file, so that a truncated partial download doesn't end
    # up executing half a script.
1 comments

Most of these scripts have been doing that for years.
I'm sure of it. And yet based on this rapidly getting to the front page, it seems like many of us are part of today's lucky ten thousand: https://xkcd.com/1053/

Might be more than ten thousand, even, based on the reactions :)

I had to do stuff like this over com ports using systems made before PC's.