Docs: Switch back to vanilla :ref: for commands that should be linked

Unfortunately, currently :program: doesn't link to the program's page.

So we use the old-school :ref: again where we should link, i.e. for
everything that's not the program the current page is about.

Fixes #8438
This commit is contained in:
Fabian Homborg
2021-11-12 18:02:56 +01:00
parent 2e9e94f17e
commit edc09c8419
8 changed files with 16 additions and 10 deletions

View File

@@ -1,3 +1,4 @@
.. _cmd-exit:
.. program::exit
exit - exit the shell
@@ -14,4 +15,4 @@ Description
``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.
If exit is called while sourcing a file (using the :ref:`source <cmd-source>` builtin) the rest of the file will be skipped, but the shell itself will not exit.