Skip to main content
6 events
when toggle format what by license comment
Jun 7, 2019 at 20:23 comment added jesse_b It absolutely is. It would work fine with a function as long as the function was built properly. set -e is not really needed though when trapping err.
Jun 7, 2019 at 20:21 comment added user313992 Is it? What if the error happens inside a func? Would your trap be called or not? Also, think through whether/why do you need set -e at all.
Jun 7, 2019 at 20:04 comment added jesse_b @UncleBilly: I don't know what you're talking about but this Q/A has nothing to do with the reliability of set -e. That is working exactly how it should.
Jun 7, 2019 at 20:02 comment added user313992 As if there wasn't a recent flurry of questions about set -e being completely unreliable.
Jun 7, 2019 at 17:48 vote accept niving6473
Jun 7, 2019 at 17:15 history answered jesse_b CC BY-SA 4.0