return [expression]
return returns from a shell function or . (dot) script. The exit status is the value of expression. The default value of expression is the exit status of the last command run.
return is a special built-in shell command.
See Localization for more information.
The current function or script returns the value of expression. If no expression is given, the exit status is the exit status of the last command run.
POSIX.2, X/Open Portability Guide.
exit, sh