2
0
Fork 0
mirror of https://github.com/fish-shell/fish-shell synced 2025-01-30 22:03:29 +00:00
fish-shell/doc_src/exec.txt

16 lines
480 B
Text
Raw Normal View History

\section exec exec - execute command in current process
\subsection exec-synopsis Synopsis
<tt>exec COMMAND [OPTIONS...]</tt>
\subsection exec-description Description
\c exec replaces the currently running shell with a new command.
On successful completion, \c exec never returns. \c exec cannot be used
inside a pipeline.
\subsection exec-example Example
<tt>exec emacs</tt> starts up the emacs text editor, and exits \c fish.
When emacs exits, the session will terminate.