News for hackers. Stuff that matters.
Re:Minimal safe Bash script template by rascul on Tuesday December 15, 2020 @09:17AM (#25430489)
I'll target bash (version checks are easy enough if necessary) instead of whatever happens to be /bin/sh. It's no problem for me to install bash wherever I need it, it provides some features I use, and I don't have to concern myself with POSIX implementation differences.

https://stackoverflow.com/questions/11376975/is-there-a-mini...

Re:Minimal safe Bash script template by thomasbacklund on Tuesday December 15, 2020 @09:52AM (#25430798)
If you need some bash specific features, I'm not going to argue with that.

In my experience, having portability of the script is quite nice when not necessarily controlling the environment it is going to run in, and aiming for ash/dash/bash does take it a long way.