The root 'problem' is that errexit only exits the subshell, it does
not exit the script. I put that in quotes because under some
circumstances that is a feature.
I want the script to exit when an error is detected without any extra code.
see my other email with the "SOLUTION". Hopefully someone
Michael Potter wrote:
Bash Bunch,
Not surprisingly, bash does not exit the script when an error is detected in
a subshell.
I am hopeful that someone has a solution to this (other than: be careful to
not use subshells).
This seems to work unless I'm missing something...
#!/bin/bash
set