return: Exit a shell function

Cause a shell function to exit with the return value n.
Syntax
return [n]

Options
n Return value i.e. an errorlevel
If n is not supplied, the return value is the exit status of the last command
executed in the function. This may also be used to terminate execution of a
script being executed with the . (or source) builtin, returning either n or
the exit status of the last command executed within the script as the exit status
of the script.

The return status is false if return is used outside a function and not during
the execution of a script by . or source.
return is a BOURNE shell command and a POSIX `special? builtin.
Tags
Comments
Write the first comment
Leave a trace
Name *
Email *
Website
Anti SPAM * Code (7 + 4) =
Leave me a comment *
 
All comments are subject to editorial review
Post being viewed right now
Item date: 23.08.2009
Views: 1512
Item date: 05.02.2009
Views: 1310
Item date: 08.03.2009
Views: 1507
Item date: 21.07.2009
Views: 2131
Item date: 07.03.2009
Views: 1279
Item date: 05.02.2009
Views: 628
Item date: 19.07.2009
Views: 1876
Item date: 08.03.2009
Views: 1758
Item date: 27.09.2009
Views: 1053