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.
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.
POSIX.2. x/OPEN Portability Guide 4.0. Windows 7. Windows Server 2008 R2. Windows 8. Windows Server 2012. Windows 10. Windows Server 2016.
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.
This is a special built-in command of the MKS KornShell.
PTC MKS Toolkit for Power Users
PTC MKS Toolkit for System Administrators
PTC MKS Toolkit for Developers
PTC MKS Toolkit for Interoperability
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
PTC MKS Toolkit 10.1 patch 1 Documentation Build 2.