return — Return from a shell function or . (dot) script

Format

return [expression]

Description

return returns from a shell 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 run.

Usage notes

return is a special built-in shell command.

Localization

renice uses the following localization environment variables:
  • LANG
  • LC_ALL
  • LC_MESSAGES
  • NLSPATH

See Localization for more information.

Exit values

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

Portability

POSIX.2, X/Open Portability Guide.

Related information

exit, sh