Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Writing Safe Shell Scripts (2019). Parent comment
The only way you know this is being a person who routinely writes shell scripts.
There is no substitute for knowing what you're doing.
Try running shellcheck on configure scripts.
Or try this
curl -4O https://ftp.netbsd.org/pub/NetBSD/NetBSD-release-8/src/build.sh shellcheck build.sh
These scripts are "safe" enough for hundreds or thousands of competent users to be running them every day.
double quotes, mixing string and array, unused variables. Why is this normal?
The only way you know this is being a person who routinely writes shell scripts.
There is no substitute for knowing what you're doing.
Try running shellcheck on configure scripts.
Or try this
Or try shellcheck on the build.sh from buildroot.org.These scripts are "safe" enough for hundreds or thousands of competent users to be running them every day.