Supplemental: set -E, etc. not working
In /share/sbin/gshlib ...
set -e set -E set -T shopt -s extdebug trap $(callStack) ERR function initialize () { : logstatus #<<< ERROR FOR TESTING trap } export -f initialize Misnaming logStatus to logstatus within /share/sbin/gshlib.initialize() to spring the trap ERR, the best I get is...
Function call stack ... | /share/sbin/archive.main() | /share/sbin/include.include() | /share/sbin/gshlib.source() | /share/sbin/include.callStack() /share/sbin/gshlib: line 109: logstatus: command not found What I'm looking to get is...
Function call stack ... | /share/sbin/archive.main() | /share/sbin/include.include() | /share/sbin/gshlib.source() | /share/sbin/gshlib.initialize() | /share/sbin/include.callStack() /share/sbin/gshlib: line 109: logstatus: command not found