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

\subsection exec-synopsis Synopsis
\fish{syn}
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.