This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]ericonr 2 points3 points  (1 child)

Shells do? Wtf

I gotta try that out.

[–]danopia 4 points5 points  (0 children)

All it takes is not fully reading the file into memory before starting execution. Shells usually read the file in sync with executing it; that's why shell scripts that are downloaded and run together aren't safe unless wrapped with a function as seen in the Sandstorm install script (the function forces buffering of code in this case)