I have this in a bash script:
( set -o pipefail echo "foobar" | bash set +o pipefail )
do I need to reset pipefail setting, or can I just omit that line? In other words, does the pipefail setting in the subshell affect the parent?
So that means I assume that this:
( set -o pipefail echo "foobar" | bash )
is really no different than the above?