aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc_src/exec.txt
blob: f8936101a9149a720ced94140a8aa141454a0bc5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
\section exec exec - execute command in current process

\subsection exec-synopsis Synopsis
\fish{synopsis}
exec COMMAND [OPTIONS...]
\endfish

\subsection exec-description Description

`exec` replaces the currently running shell with a new command. On successful completion, `exec` never returns. `exec` cannot be used inside a pipeline.


\subsection exec-example Example

`exec emacs` starts up the emacs text editor, and exits `fish`. When emacs exits, the session will terminate.