mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-12-03 08:23:51 +08:00
edc09c8419
Unfortunately, currently :program: doesn't link to the program's page. So we use the old-school :ref: again where we should link, i.e. for everything that's not the program the current page is about. Fixes #8438
19 lines
497 B
ReStructuredText
19 lines
497 B
ReStructuredText
.. _cmd-exit:
|
|
.. program::exit
|
|
|
|
exit - exit the shell
|
|
=====================
|
|
|
|
Synopsis
|
|
--------
|
|
|
|
**exit** [*code*]
|
|
|
|
Description
|
|
-----------
|
|
|
|
``exit`` is a special builtin that causes the shell to exit. Either 255 or the *code* supplied is used, whichever is lesser.
|
|
Otherwise, the exit status will be that of the last command executed.
|
|
|
|
If exit is called while sourcing a file (using the :ref:`source <cmd-source>` builtin) the rest of the file will be skipped, but the shell itself will not exit.
|