return - Return from a function
Synopsis
return [ n ]
Description
You can use return to cause a function or dot script to return to the invoking shell script. If return is called outside a function or dot script, it is equivalent to exit.
Options
None.
Operands
The value of n is an integer that is greater than or equal to 0 and less than or equal to 255.
Exit status
n if specified. Otherwise, the exit status of the preceding command.