exit

exit n -- terminates the program and returns n as return code.
exit -- terminates the program and returns 0 as return code.

Files are flushed and closed. Another way to exit is to type the end of file character, which is typically set to Control-D in unix systems, and is Control-Z under MSDOS.

See also quit.

Go to main index.

Go to concepts index.