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

It is sad that trap interface is not reversed:

  trap EXIT WHATEVER -- cmd args
But as it is common with bash interfaces crystalized before good practices became apparent.


Stylistic bikeshedding.

3 keywords for normal, abnormal, and all exits would be semantically clear.

The best practice for a problematic language is to use something else.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: