Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Actually, there are still some bashism, and real foot traps at that. `trap EXIT` basically only "works" for try/finally behavior in bash, not even zsh. There should really be a warning around this in the article: if you want to be have portable cleanup for all exit conditions that works in different shells, you need a lot of busywork.


Where do you see such usage in the article?





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

Search: