I am using Ubuntu 14 /bin/bash. The shell script does not fail, if a certain function is not found. How can I make the script exit if something like this happens?
For reference my code structure at the high level is:
funcA() {
funcB() # this is accidentally called but is never define due to editing error
funcC()
}
funcA