4 ms·
Exactly. It makes you think about what you want to happen if that command fails. Die hard, or try to salvage it. You have to write shell scripts with set -e in
by CameronNemo 12y ago
Exactly. It makes you think about what you want to happen if that command fails. Die hard, or try to salvage it. You have to write shell scripts with set -e in mind from the get-go, and that is a good thing.
- mietek 12y agoIt would be a good thing if `set -e` worked as expected. The point of the FAQ is that `set -e` does not catch every failure, so you need to do your own checking anyway. http://mywiki.wooledge.org/BashFAQ/105/Answers http://mywiki.wooledge.org/BashFAQ/105/Answers