I'd like to use set -e in a bash script, but every time I run it any error kills my shell.
say I have script.sh: #! /usr/bin/env bash set -e my_commmand my_other_command
An error in
my_command blows up my shell whether I do:
% ./script.sh (after chmod)
% . ./script.sh
There must be an easy way around this.