Macaulay2 » Documentation
Packages » Macaulay2Doc > The Macaulay2 language > system facilities > exit
next | previous | forward | backward | up | index | toc

exit -- exit the program

Description

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. Functions registered with addEndFunction are called, unless a nonzero return value has been provided. 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 Windows.

See also

For the programmer

The object exit is a command.