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

A related annoyance is that when you write a for-loop in a Makefile, every iteration gets run even if one of them fails, due to how the shell calculates exit codes of for-loops.

So most of the time you should do "set -e; for XXX". Otherwise your Makefile loops will "succeed" incorrectly.



Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

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

Search: