jkercher@programming.devtolinuxmemes@lemmy.world•My heart goes out to shell programmers who have to support posix shEnglish
0·
3 days agoI was never a fan of set -e
. I prefer to do my own error handling. But, I never understood why pipefail wasn’t the default. A failure is a failure. I would like to know about it!
Yeah, I had a silly hack for that. I don’t remember what it was. It’s been 3-4 years since I wrote bash for a living. While not perfect, I still need to know if a pipeline command failed. Continuing a script after an invisible error, in many cases, could have been catastrophic.