Name
return
Synopsis
[
return
n
]
Normally used inside a function to exit the function with status n
or with the exit status of the previously executed command. Can be used outside a function during execution of a script by the .
command to cause the shell to stop execution of the script. The return status is n
or the script’s exit status.
Get Mac OS X Tiger in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.