return

return from a KornShell function or . (dot) script 

KornShell Built-in


SYNOPSIS

return [expression]


DESCRIPTION

return returns from a KornShell 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 executed.


DIAGNOSTICS

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 executed.


PORTABILITY

POSIX.2. x/OPEN Portability Guide 4.0. Windows 2000. Windows XP. Windows Server 2003. Windows Vista. Windows 7. Windows Server 2008. Windows 8. Windows Server 2012.

return is a built-in command of the Bourne Shell and KornShell on UNIX systems.

Allowing an expression, rather than just a number, is an extension found in the KornShell.


NOTE

This is a special built-in command of the MKS KornShell.


AVAILABILITY

MKS Toolkit for Power Users
MKS Toolkit for System Administrators
MKS Toolkit for Developers
MKS Toolkit for Interoperability
MKS Toolkit for Professional Developers
MKS Toolkit for Enterprise Developers
MKS Toolkit for Enterprise Developers 64-Bit Edition
MKS Integrity


SEE ALSO

Commands:
exit, sh


MKS Toolkit 9.5 Documentation Build 3.