2 ms·
Few people understand that if...then in bash is actually a form of try...catch. The -e terminates the script at every failure not caught by a try...catch. Wit
by teo_zero 4y ago
Few people understand that if...then in bash is actually a form of try...catch.
The -e terminates the script at every failure not caught by a try...catch.
With this in mind, it's easier to predict bash's behavior.