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 the fish builtin exec. if you want the docs on any non-fish version of it, bestie, you gotta run command 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 😭🌸


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