mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-28 13:53:10 +00:00
17 lines
495 B
Text
17 lines
495 B
Text
|
|
||
|
\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 sucessfull 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.
|