EXIT ( 1 ) USER COMMANDSEXIT ( 1 )


NAME

exit - exit the current shell

SYNOPSIS

exit [ options ] [n]

DESCRIPTION

exit is shell special built-in that causes the shell that invokes it to exit. Before exiting the shell, if the EXIT trap is set it will be invoked.

If n is given, it will be used to set the exit status.

EXIT STATUS

If n is specified, the exit status is the least significant eight bits of the value of n. Otherwise, the exit status is the exit status of preceding command. When invoked inside a trap, the preceding command means the command that invoked the trap.

SEE ALSO

break(1), return(1)

IMPLEMENTATION

version
exit (AT&T Research) 1999-07-07
author
David Korn <dgkorn@gmail.com>
copyright
Copyright © 1982-2010 AT&T Intellectual Property
license
http://www.opensource.org/licenses/cpl1.0.txt