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

The bare idea of running a separate process as the condition of a loop is just disgusting though. I really don’t get why are we stuck with bash.



It’s not disgusting, it’s a superb feature of shell scripting and a manifestation of feature composition. That you can write things like `while git diff --exit-code` is delightful.


Yes it is good for that occasion. It is terrible for things like `test`, `true` and the like as a separate processes.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: