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

The \c exec builtin is used to replace the currently running shells
process image with a new command. On successful completion, exec never
returns. exec can not be used inside a pipeline.

\subsection exec-example Example

<tt>exec emacs</tt> starts up the emacs text editor. When emacs exits,
the session will terminate.