Hacker News new | ask | show | jobs
by ko1nksm 734 days ago
set -o pipefail is now POSIX compliant. Use it in all POSIX shell scripts, not just bash scripts.
1 comments

Oh wow, I didn't know that. I am pretty sure I had a sh trip up on it just recently, so I thought it still was bash only. Yes, use it everywhere possible.
Emphasis on now - it's new in this version, so probably expect a little bit of delay before it's actually available everywhere. But yes, excellent addition and I'm happy to have it available more broadly now.