.\" Man page generated from reStructuredText .\" by the Docutils 0.23 manpage writer. . . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .TH "EXIT" "1" "Oct 26, 2026" "4.9" "fish-shell" .SH NAME exit \- exit the shell .SH SYNOPSIS .nf \fBexit\fP [\fICODE\fP] .fi .sp .SH DESCRIPTION .sp \fBexit\fP is a special builtin that causes the shell to exit. Either 255 or the \fICODE\fP supplied is used, whichever is lesser. Otherwise, the exit status will be that of the last command executed. .sp If exit is called while sourcing a file (using the source \%<> builtin) the rest of the file will be skipped, but the shell itself will not exit. .sp The \fB\-\-help\fP or \fB\-h\fP option displays help about using this command. .SH Copyright fish-shell developers .\" End of generated man page.