Monthly Archives: June 2015

Exception Handling in Bash

Here’s a convenient pattern for anyone doing Bash scripting: Use a subshell with the Bash halt-on-failure feature enabled to execute a set of commands but break as soon as any one of them fails.

The above example will print … Continue reading

Posted in Uncategorized | Leave a comment