From 7a8fce6941cbb0767e60dd452c1687049d31d25c Mon Sep 17 00:00:00 2001 From: Aaron Gyes Date: Fri, 12 Nov 2021 04:51:04 -0800 Subject: [PATCH] Thwart more dastardly schemes thanks @faho --- doc_src/cmds/exit.rst | 3 ++- doc_src/cmds/fish_add_path.rst | 2 +- doc_src/cmds/return.rst | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/doc_src/cmds/exit.rst b/doc_src/cmds/exit.rst index bea18463b..a2a49d498 100644 --- a/doc_src/cmds/exit.rst +++ b/doc_src/cmds/exit.rst @@ -11,6 +11,7 @@ Synopsis Description ----------- -``exit`` is a special builtin that causes the shell to exit. If ``code`` is specified, the exit status is the eight least significant bits of ``n``. Otherwise, the exit status will be that of the last command executed. +``exit`` is a special builtin that causes the shell to exit. Either 255 or the *code* supplied is used, whichever is lesser. +Otherwise, the exit status will be that of the last command executed. If exit is called while sourcing a file (using the :program:`source` builtin) the rest of the file will be skipped, but the shell itself will not exit. diff --git a/doc_src/cmds/fish_add_path.rst b/doc_src/cmds/fish_add_path.rst index 23425aa3b..0743aa531 100644 --- a/doc_src/cmds/fish_add_path.rst +++ b/doc_src/cmds/fish_add_path.rst @@ -16,7 +16,7 @@ Description :program:`fish_add_path` is a simple way to add more components to fish's :envvar:`PATH`. It does this by adding the components either to $fish_user_paths or directly to $PATH (if the ``--path`` switch is given). -It is (by default) safe to use ``fish_add_path`` in config.fish, or it can be used once, interactively, and the paths will stay in future because of :ref:`universal variables `. This is a "do what I mean" style command, if you need more control, consider modifying the variable yourself. +It is (by default) safe to use :program:`fish_add_path` in config.fish, or it can be used once, interactively, and the paths will stay in future because of :ref:`universal variables `. This is a "do what I mean" style command, if you need more control, consider modifying the variable yourself. Components are normalized by :program:`realpath`. Trailing slashes are ignored and relative paths are made absolute (but symlinks are not resolved). If a component already exists, it is not added again and stays in the same place unless the ``--move`` switch is given. diff --git a/doc_src/cmds/return.rst b/doc_src/cmds/return.rst index 361f78eab..53442159b 100644 --- a/doc_src/cmds/return.rst +++ b/doc_src/cmds/return.rst @@ -1,4 +1,4 @@ -.. proggram::return: +.. program::return: return - stop the current inner function ========================================