79645046

Date: 2025-05-30 07:25:47
Score: 1
Natty:
Report link

So this works:

return_trap() {
        [[ ${FUNCNAME[1]} != "err_trap" ]] && ERR=0
}

Also, it is NOT a problem if there is other functions called from within RETURN trap handler. But it's only that one handler that has the exception.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Albert Camu