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

Just using `set -euo pipefail` will prevent many stupid things, but then again, conventional wisdom these days just seems to be to not use a shell if you can help it.

https://sipb.mit.edu/doc/safe-shell/



That's another example of what I mean, learning the magic invocations that amount to "Oh, please shell, act halfway like this is the 21st century, please?" It's like how I still have "#!/usr/bin/bash NL use strict; NL use warnings;" still burned into my fingers for Perl. (AIUI that's obsolete now but I never got to upgrade to the versions where that became obsolete, and now I'm just out of it.)




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

Search: