Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • I can see both questions overlapping, but since my question focuses on compound commands and I don't understand the answer to my problem from reading the answers of the dupe, I feel both could stand on their own. Commented Sep 22, 2017 at 9:53
  • Reopened the question after substantial changes to the text of the question itself. It is no longer a dupe of the original set -e question. Commented Sep 22, 2017 at 10:25
  • @Kusalananda, I'm pretty sure there is a closer duplicate though. I remember seeing one quite recently. Commented Sep 22, 2017 at 11:17
  • See also mywiki.wooledge.org/BashFAQ/105 or fvue.nl/wiki/Bash:_Error_handling Commented Sep 22, 2017 at 11:20
  • @Kusalananda, Behavior of set -e in function calls is the on I had in mind (itself closed as duplicate). Commented Sep 22, 2017 at 13:56