Wiki source for CommandExit

Show raw source

======Command exit======

**exit** Exits the current shell or script.

**exit** [ret code]

Exits the current shell. If ret code is specified it is used as the exit value, otherwise 0.
If running an xmlsh script then exits the script with the specified exit code.
If running interactively exits the xmlsh program.

Example: exit with exit value 0
exit 0

Example: exit with the last command's exit value


Valid XHTML :: Valid CSS: :: Powered by WikkaWiki