diff --git a/sphinx_doc_src/cmds/and.rst b/sphinx_doc_src/cmds/and.rst index e5644f4c9..5e3a3c18c 100644 --- a/sphinx_doc_src/cmds/and.rst +++ b/sphinx_doc_src/cmds/and.rst @@ -10,7 +10,6 @@ Synopsis COMMAND1; and COMMAND2 - Description ----------- @@ -25,10 +24,11 @@ Example The following code runs the ``make`` command to build a program. If the build succeeds, ``make``'s exit status is 0, and the program is installed. If either step fails, the exit status is 1, and ``make clean`` is run, which removes the files created by the build process. - - :: make; and make install; or make clean +See Also +-------- +- :ref:`or ` command diff --git a/sphinx_doc_src/cmds/false.rst b/sphinx_doc_src/cmds/false.rst index e4b1cf326..40da9a6af 100644 --- a/sphinx_doc_src/cmds/false.rst +++ b/sphinx_doc_src/cmds/false.rst @@ -14,3 +14,9 @@ Description ----------- ``false`` sets the exit status to 1. + +See Also +-------- + +- :ref:`true ` command +- :ref:`$status ` variable diff --git a/sphinx_doc_src/cmds/or.rst b/sphinx_doc_src/cmds/or.rst index 3184de82a..de4bbd055 100644 --- a/sphinx_doc_src/cmds/or.rst +++ b/sphinx_doc_src/cmds/or.rst @@ -15,8 +15,7 @@ Description ``or`` is used to execute a command if the previous command was not successful (returned a status of something other than 0). -``or`` statements may be used as part of the condition in an :ref:`and ` or :ref:`while ` block. See the documentation -for :ref:`if ` and :ref:`while ` for examples. +``or`` statements may be used as part of the condition in an :ref:`and ` or :ref:`while ` block. ``or`` does not change the current exit status itself, but the command it runs most likely will. The exit status of the last foreground command to exit can always be accessed using the :ref:`$status ` variable. @@ -25,9 +24,11 @@ Example The following code runs the ``make`` command to build a program. If the build succeeds, the program is installed. If either step fails, ``make clean`` is run, which removes the files created by the build process. - - :: make; and make install; or make clean +See Also +-------- + +- :ref:`and ` command diff --git a/sphinx_doc_src/cmds/true.rst b/sphinx_doc_src/cmds/true.rst index 750d18cfe..ef0c86779 100644 --- a/sphinx_doc_src/cmds/true.rst +++ b/sphinx_doc_src/cmds/true.rst @@ -10,8 +10,13 @@ Synopsis true - Description ----------- ``true`` sets the exit status to 0. + +See Also +-------- + +- :ref:`false ` command +- :ref:`$status ` variable