2005-09-20 13:31:55 +00:00
|
|
|
|
|
|
|
\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
|
2006-01-23 23:17:06 +00:00
|
|
|
process image with a new command. On successful completion, exec never
|
|
|
|
returns. exec can not be used inside a pipeline.
|
2005-09-20 13:31:55 +00:00
|
|
|
|
|
|
|
\subsection exec-example Example
|
|
|
|
|
|
|
|
<tt>exec emacs</tt> starts up the emacs text editor. When emacs exits,
|
|
|
|
the session will terminate.
|