mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-04-21 17:21:14 -03:00
No need to define "cmd-foo" anchors; use :doc:`foo <cmds/foo>`
instead. If we want "cmd-foo" but it should be tested.
See also 38b24c2325 (docs: Use :doc: role when linking to commands,
2022-09-23).
20 lines
547 B
ReStructuredText
20 lines
547 B
ReStructuredText
exit - exit the shell
|
|
=====================
|
|
|
|
Synopsis
|
|
--------
|
|
|
|
.. 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 :doc:`source <source>` builtin) the rest of the file will be skipped, but the shell itself will not exit.
|
|
|
|
The **--help** or **-h** option displays help about using this command.
|