diff options
Diffstat (limited to 'doc_src/exec.txt')
-rw-r--r-- | doc_src/exec.txt | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/doc_src/exec.txt b/doc_src/exec.txt index 27f6d887..75effda1 100644 --- a/doc_src/exec.txt +++ b/doc_src/exec.txt @@ -1,15 +1,17 @@ \section exec exec - execute command in current process \subsection exec-synopsis Synopsis - <tt>exec COMMAND [OPTIONS...]</tt> +\fish{syn} +exec COMMAND [OPTIONS...] +\endfish \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 +`exec` replaces the currently running shell with a new command. +On successful completion, `exec` never returns. `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. +`exec emacs` starts up the emacs text editor, and exits `fish`. When emacs exits, the session will terminate. |