From 7c7eac118237432f3c8d935831b86bd2d78e1433 Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Thu, 12 Nov 2020 22:10:05 +0100 Subject: [PATCH] fixup! docs: use monospace for inline code snippets more consistently --- doc_src/faq.rst | 2 +- doc_src/fish_for_bash_users.rst | 2 +- doc_src/tutorial.rst | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc_src/faq.rst b/doc_src/faq.rst index 32b6afbe5..7b0feaaa7 100644 --- a/doc_src/faq.rst +++ b/doc_src/faq.rst @@ -260,7 +260,7 @@ or apt install postgres-* -appear to work, because most of the time the string doesn't match and so it passes along the `string-*`, which is then interpreted by the receiving program. +appear to work, because most of the time the string doesn't match and so it passes along the ``string-*``, which is then interpreted by the receiving program. But it also means that these commands can stop working at any moment once a matching file is encountered (because it has been created or the command is executed in a different working directory), and to deal with that bash needs workarounds like diff --git a/doc_src/fish_for_bash_users.rst b/doc_src/fish_for_bash_users.rst index 17b7b2f15..bb3867d50 100644 --- a/doc_src/fish_for_bash_users.rst +++ b/doc_src/fish_for_bash_users.rst @@ -271,4 +271,4 @@ By now it has become apparent that fish puts much more of a focus on its builtin - :ref:`count ` can be used to count things and therefore replaces ``$#`` and can be used instead of ``wc``. - :ref:`status ` provides information about the shell status, e.g. if it's interactive or what the current linenumber is. This replaces ``$-`` and ``$BASH_LINENO`` and other variables. -- ``seq(1)`` can be used as a replacement for ``{1..10}`` range expansion. If your OS doesn't ship a `seq` fish includes a replacement function. +- ``seq(1)`` can be used as a replacement for ``{1..10}`` range expansion. If your OS doesn't ship a ``seq`` fish includes a replacement function. diff --git a/doc_src/tutorial.rst b/doc_src/tutorial.rst index 11622d596..42675cd28 100644 --- a/doc_src/tutorial.rst +++ b/doc_src/tutorial.rst @@ -306,7 +306,7 @@ Other variables, like ``$PATH``, really do have multiple values. During variable /usr/bin /bin /usr/sbin /sbin /usr/local/bin -Variables whose name ends in "PATH" are automatically split on colons to become lists. They are joined using colons when exported to subcommands. This is for compatibility with other tools, which expect $PATH to use colons. You can also explicitly add this quirk to a variable with `set --path`, or remove it with `set --unpath`. +Variables whose name ends in "PATH" are automatically split on colons to become lists. They are joined using colons when exported to subcommands. This is for compatibility with other tools, which expect $PATH to use colons. You can also explicitly add this quirk to a variable with ``set --path``, or remove it with ``set --unpath``. Lists cannot contain other lists: there is no recursion. A variable is a list of strings, full stop.