fish-shell/doc_src/cmds/exec.rst
David Adam 3a23fdf359 docs: omnibus cleanup
Includes harmonizing the display of options and arguments, standardising
terminology, using the envvar directive more broadly, adding help options to all
commands that support them, simplifying some language, and tidying up multiple
formatting issues.

string documentation is not changed.
2022-03-12 00:21:13 +08:00

24 lines
541 B
ReStructuredText

.. _cmd-exec:
exec - execute command in current process
=========================================
Synopsis
--------
.. synopsis::
exec COMMAND
Description
-----------
``exec`` replaces the currently running shell with a new command. On successful completion, ``exec`` never returns. ``exec`` cannot be used inside a pipeline.
The **--help** or **-h** option displays help about using this command.
Example
-------
``exec emacs`` starts up the emacs text editor, and exits ``fish``. When emacs exits, the session will terminate.