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