Who is responsible for providing `set -o pipefail`
9
votes
3
answers
4556
views
I want strict mode in my scripts. I would also appreciate portability.
[set -o pipefail](https://www.translucentcomputing.com/2020/11/unofficial-bash-strict-mode-pipefail/) seems compulsory. Yet
shellcheck
(a static linter) is unhappy that "In POSIX sh, set option pipefail is undefined".
Is it correct? If so, is this a bash
solely feature or is it rather prolific?
Asked by Vorac
(3197 rep)
Jun 19, 2021, 07:33 AM
Last activity: Mar 18, 2025, 04:32 PM
Last activity: Mar 18, 2025, 04:32 PM