EXIT(1)

โœจ EXIT(1) โœจ

okay so real talk, bestie โ€” this is a fish-shell manual page, and it's literally the shortest one you'll ever read, so we're gonna get through it together ๐Ÿซถ


๐ŸŒธ NAME ๐ŸŒธ

exit โ€” the builtin that's like "ok bye" and means it ๐Ÿ’…


๐ŸŽ€ SYNOPSIS ๐ŸŽ€

exit [CODE]

๐Ÿฆ‹ DESCRIPTION ๐Ÿฆ‹

So exit is a special builtin (yes, special, main character energy ๐Ÿ‘‘) and what it does is cause the shell to exit. That's it. That's the whole vibe.

Here's the part you actually need to remember: the exit status it hands back is either 255 or the CODE you supplied, whichever is lesser. Not whichever you wanted, not whichever felt right โ€” whichever is lesser. The math is doing the math ๐Ÿ“โœจ

And if you don't give it a CODE at all? Then the exit status will just be that of the last command executed. Comfy. Familiar. Invisible. Slay.

ngl there's a little plot twist here: if exit gets called while you're sourcing a file (using the source <> builtin), the rest of that file gets skipped โ€” but the shell itself will not exit. So the file dips out early, and the shell keeps the party going ๐ŸŽ‰ Just so you know, no surprises.

Also, quick lil reminder: the --help or -h option displays help about using this command. Iconic behaviour honestly ๐Ÿ™ˆ


fish-shell developers โ€” they made it, they get the credit, periodt ๐Ÿ’


okay that's genuinely the whole page, you ate that, go close a shell or don't, I believe in you ๐Ÿงšโ€โ™€๏ธ

this beauty comes to you from fish-shell, version 4.9, dated Sep 08, 2026 โ€” see you in the next manpage bestie ๐Ÿ’œ

๐Ÿ“ฆ where this page comes from
  • arch rolling: fish 4.9.3-1 ยท GPL-2.0-only AND BSD-3-Clause AND ISC AND MIT AND PSF-2.0
  • ๐Ÿ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms