Article 5BNAH How can a bash code do a return completely while in nested call

How can a bash code do a return completely while in nested call

by
BudiKusasi
from LinuxQuestions.org on (#5BNAH)
How can a bash code do a return completely (as if it returns from main function) when it is being in a third nested function call, in order to get back to shell prompt at once ?

the main function invocation is one which will fully shut down terminal if exit command is given.
tried so many times in vain, one of them:

Code:c(){
local p
#...

[ "$p" = err ] && kill $TID

#...
}

b(){
#...
c
#...
}

a(){
export TID=$$
#...

b
#...
#...
}latest?d=yIl2AUoC8zA latest?i=NM3s9aREXHE:GrDOrUOv1ko:F7zBnMy latest?i=NM3s9aREXHE:GrDOrUOv1ko:V_sGLiP latest?d=qj6IDK7rITs latest?i=NM3s9aREXHE:GrDOrUOv1ko:gIN9vFwNM3s9aREXHE
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments