3 ms·
> There are cases where you don't want -e enabled, such as when you want to make sure your script makes the best attempt to continue operating even through unkn
by mekster 5y ago
> There are cases where you don't want -e enabled, such as when you want to make sure your script makes the best attempt to continue operating even through unknown failures.
You don't let go of -e for that.
dont_mind_failure || true
important_process
add 'true' specifically if you must.
- 0xbadcafebee 5y agoThere are scripts where you don't want any failure to kill the script. You would have to wrap nearly every line in that kind of exception handling, and if you miss one, the script fails. It is much simpler to omit -e in that case