EXEC(1)
π EXEC(1) β like, the fish-shell version, bestie β¨
okay so real talk: this is the <pink>fish-shell</pink> manual page for exec, and it's lowkey one of the most main-character commands in the whole builtin lineup. buckle up π
πΈ NAME πΈ
exec β execute command in current process. yes. in the current process. it's giving "I'm not making a child, I'm becoming the child." iconic behavior fr fr π
π¦ SYNOPSIS π¦
exec COMMAND
that's it. one command. no notes. β¨
π DESCRIPTION π
NOTE: this page documents thefishbuiltinexec. if you want the docs on any non-fish version of it, bestie, you gotta runcommand man exec. iykyk π«Ά
okay so here's the tea: exec replaces the currently running shell with a new command. not "spawns a new one." not "runs it alongside." it replaces. like a full-on identity swap, main character energy only π
on successful completion, exec never returns. nope. it's gone. it does not come back. that's not a bug, that's the whole vibe π
also super important: exec cannot be used inside a pipeline. it's a solo act, not a collab. π€
and hiii, the --help or -h option displays help about using this command. cute, right? π§
β EXAMPLE β
exec emacs
so this starts up the emacs text editor and exits fish. like, fish is gone-gone. and when emacs exits? the session will terminate. yeah. that's it. that's the whole journey ππΈ
π Copyright π
fish-shell developers β protecting the whole fish fam, we love to see it π
alright bestie, that's the page π«Ά this lil doc dropped as version 4.9, dated Sep 08, 2026, brought to you by the fish-shell developers β go forth and replace your shell responsibly, mwah π ππ¦
π¦ 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