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*

2
  • Thank you! It would be clearer to use echo "printed" and echo "not_printed" in your examples (instead of echo 1). Commented Sep 27, 2016 at 9:35
  • 3
    Note that set -e causes an exit in (false && true); echo not here, but not in { false && true; }; echo here, though YMMV with different shells and even different versions of a same shell. I wouldn't touch set -e with a barge pole and would do proper error handling instead. Commented Sep 27, 2016 at 13:47