@darkuncle @b0rk beware: `-o pipefail` is not defined in POSIX spec, so `/bin/sh` may not recognize it (`/bin/bash` would)
See ShellCheck Wiki for a POSIXly correct way of achieving a similar effect: https://www.shellcheck.net/wiki/SC3040
Top-level
@darkuncle @b0rk beware: `-o pipefail` is not defined in POSIX spec, so `/bin/sh` may not recognize it (`/bin/bash` would) See ShellCheck Wiki for a POSIXly correct way of achieving a similar effect: https://www.shellcheck.net/wiki/SC3040 2 comments
|
@kytta set -o pipefail has been added in POSIX.1-2024.
https://pubs.opengroup.org/onlinepubs/9799919799.2024edition/utilities/V3_chap02.html#tag_19_26