aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc_src/exec.txt
blob: 27f6d88763773be0f1e30c5fcc8abd91493db498 (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
 <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.