MPE/iX Shell and Utilities Reference Manual, Vol 1

exit(1) MPE/iX Shell and Utilities exit(1)
NAME
exit — exit from the shell
SYNOPSIS
exit [expression]
DESCRIPTION
exit terminates the shell.
On a POSIX-compliant system, the value of expression should be between 0 and 255. The
EXIT trap is raised by the exit command, unless exit is being invoked inside an EXIT
trap.
DIAGNOSTICS
exit returns the value of the arithmetic expression to the parent process as the exit status of
the shell. If you omit expression, it returns the exit status of the last command executed.
Messages
Because this utility is built into the
MPE/iX Shell, see the sh(1) man page for a complete list of
error messages that you may receive when using it.
PORTABILITY
POSIX.2. x/OPEN Portability Guide 4.0. All 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 shell.
MPE/iX NOTES
If you are using the
MPE/iX Shell under the MPE/iX CI, remember that using the exit command
at the shell’s root level does not log you off the system but merely returns you to the MPE/iX CI.
SEE ALSO
return(1), sh(1)
1-214 Commands and Utilities