Why Nostr? What is Njump?
2024-03-24 16:13:48
in reply to

menherahair on Nostr: eisai >I guess pipefail will work if you add “set -e” to the beginning of your ...

>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 :beacringe:. 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.
Author Public Key
npub1n783957maa2g7rpdyd5knx0whfggllws33clq9qg4dme3wauxrvq6q87ev