return - return from a shell function
return [N]
Gotchas
- In a function use return, not exit - exit kills the whole script.
Try return in a real terminal Free, in your browser - a real Ubuntu terminal to try it in, with missions that check your work.