menherahair on Nostr: eisai >I guess pipefail will work if you add “set -e” to the beginning of your ...
eisai (npub13nf…f7eq) >I guess pipefail will work if you add “set -e” to the beginning of your script.
You'd think so, but it doesn't and I'm not sure why either. I'm not a big fan of -e in the first place, especially in things like these that get sourced in another script and may source yet another script and these may not work with it so you have to unset it but without unsetting it somewhere else and mendokusai . It also breaks some bashisms like `read -d''` and whenever I see `|| true` I wanna kms. -u is nicer and along with failglob leads to neat code but has the same issues here. pipefail is actually set in `pass` so I get to rely on that.
You'd think so, but it doesn't and I'm not sure why either. I'm not a big fan of -e in the first place, especially in things like these that get sourced in another script and may source yet another script and these may not work with it so you have to unset it but without unsetting it somewhere else and mendokusai . It also breaks some bashisms like `read -d''` and whenever I see `|| true` I wanna kms. -u is nicer and along with failglob leads to neat code but has the same issues here. pipefail is actually set in `pass` so I get to rely on that.