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

This is going off of memory as I'm not at my computer. Bash does something similar. It will read and execute the script line by line so if it's modified before bash gets to that line then weird things can happen. However, functions need to be read completely so the trick is to create a main function and call it at the end of the script.



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

Search: