Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Writing Robust Bash Shell Scripts (davidpashley.com)
2 points by twohey on Nov 14, 2013 | hide | past | favorite | 1 comment


This article was very relevant to me. I've been writing bash script for so many years, yet I didn't know you could just "set -u" to make bash stop when I accidentally use an uninitialized variable. "set -e" is also incredible useful (bash quits if any statement fails).




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

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

Search: