Hacker News new | past | comments | ask | show | jobs | submit login

How would it become truncated?



A cat unplugs the router?


When a dog does it, would it be trundoged instead?


In the case of curl it can happen if the server did not use Content-Length and the connection gets closed.


All the presence of the content-length header would do is change curl's exit code when the connection breaks. The part where curl output the truncated script and bash executed it would be unchanged.


The whole context of this conversation is >If the connection fails for any reason, the script will stop, potentially breaking or corrupting things.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: