Wiki source for CommandExit


Show raw source

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

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


====Synopsis====
**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.


====Examples====
Example: exit with exit value 0
%%
exit 0
%%

Example: exit with the last command's exit value
%%
exit
%%

----
[[Commands]]
[[CategoryCommands]]

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