#371514 - 13/01/201913:51Re: Bash script help - Exiting from within a function that returns data?
[Re: peter]
tfabris carpal tunnel
Registered: 20/12/1999
Posts: 31619
Loc: Seattle, WA
Thanks! That makes sense. Like the person in the StackOverflow article, I couldn't use those methods in my actual program, but the "green checkmark" solution's trick of setting up a trap at the top level and invoking the trap from within the function worked for what I needed to do. Thank you so much!