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*

3
  • Which not consistently using the long more self described options like set -o errexit -o nounset -o pipefail? (btw, there's nothing bash-specific in those). Commented Apr 4, 2023 at 9:43
  • Aren't those options Bash specific? Commented Apr 4, 2023 at 10:11
  • 1
    While set -u can be useful at least as a development helper, I'd be really wary of things like set -e esp. in connection with pipefail. If you ever use pipelines, I'd wager that will cause your script to mysteriously fail without you having any idea why it happens. Commented Apr 4, 2023 at 12:54