Re:Shellcheck finds bugs in your shell scripts
by Xophmeister on Thursday November 23, 2023 @05:24PM
(#38398312)
Using `set -u` is more portable. If your shebang is `/usr/bin/env bash`, which it probably should be, then you can't add additional command line arguments in Linux with older coreutils. macOS supports additional arguments, regardless, and in Linux, coreutils 8.30 added the `-S` option to `env` to get around this problem.
[ Parent
| on HN ]
There are no comments on this comment yet.