There are three more instances where undefined variables aren't checked in a way that works with the nounset flag
Example (dummy_test):
testDummy() {
set -o nounset
cleanupSpies
}Output:
# dummy_test: 147: eval: _shpy_spies_dir: parameter not set
The other two instances involve createSpy: if a return value is passed via -r, and if no spy name is passed
There are three more instances where undefined variables aren't checked in a way that works with the
nounsetflagExample (dummy_test):
Output:
The other two instances involve
createSpy: if a return value is passed via-r, and if no spy name is passed