return

NAME

return - return from function or . script

SYNOPSIS

return [status]

DESCRIPTION

This command is a Korn-shell built-in command.

The return(1) command returns from a function or . script, with exit status status. If no status is given, the exit status of the last executed command is used. If used outside of a function or . script, it has the same effect as exit(1). Note that ksh(1) treats both profile and $ENV files as . scripts, while the original Korn shell only treats profiles as . scripts.