I have created a shell function to comfortably use desktop search tool
baloosearch. I created it as a function for a reason.
Now, in this functions I need to use
exit command to quit loops,
case conditions. The problem is, when the
exit commands gets executed, it also kills my terminal window...
My question is, is there a way to use
exit, but without closing the terminal window?
When using this thing as a shell script, it's okay, but I need it to be run as a BASH function...