A shell parser, formatter, and interpreter with bash support; includes shfmt
BSD 3-Clause "New" or "Revised" License
7.1k
stars
336
forks
source link
interp: different behavior of `pipefail` for multiline scripts #870
Closed
Hades32 closed 1 year ago
I'm using Task and hit this issue and was directed here: https://github.com/go-task/task/issues/392#issuecomment-1141300882
I want my script to fail on pipe errors.
cmd1
works/fails as expected, butcmd2
never fails:Why does
pipefail
not work in the second case?