mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-30 03:01:15 -03:00
We no longer have two doc systems, move sphinx_doc_src back to doc_src
This commit is contained in:
22
doc_src/cmds/exec.rst
Normal file
22
doc_src/cmds/exec.rst
Normal file
@@ -0,0 +1,22 @@
|
||||
.. _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.
|
||||
Reference in New Issue
Block a user