fish-shell/sphinx_doc_src/cmds/exec.rst
David Adam 02d82dcf85 docs: update all command synopsis formatting
Adds synopses for those commands missing them.

Moves all synopsis sections to code blocks. This improves the appearance, although highlighting as
fish code may not be the ideal appearance.
2019-09-17 17:59:04 +08:00

22 lines
471 B
ReStructuredText

.. _cmd-exec:
exec - execute command in current process
=========================================
Synopsis
--------
::
exec COMMAND [OPTIONS...]
Description
-----------
``exec`` replaces the currently running shell with a new command. On successful completion, ``exec`` never returns. ``exec`` cannot be used inside a pipeline.
Example
-------
``exec emacs`` starts up the emacs text editor, and exits ``fish``. When emacs exits, the session will terminate.