From 1b98566f3d260864fb4f4720c9bc6df040261391 Mon Sep 17 00:00:00 2001 From: Fabian Boehm Date: Wed, 13 Sep 2023 17:08:52 +0200 Subject: [PATCH] docs/set: Correct some errors (cherry picked from commit ad54f073285e34e5eb63e3a02828aac5cae5be4a) --- doc_src/cmds/set.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc_src/cmds/set.rst b/doc_src/cmds/set.rst index 07dc21758..9650c39b1 100644 --- a/doc_src/cmds/set.rst +++ b/doc_src/cmds/set.rst @@ -25,7 +25,7 @@ If both *NAME* and *VALUE* are provided, ``set`` assigns any values to variable Variables in fish are :ref:`lists `, multiple values are allowed. One or more variable *INDEX* can be specified including ranges (not for all options.) -If no *VALUE* is given, the variable will be set to the empty list i.e. ``''``. +If no *VALUE* is given, the variable will be set to the empty list. If ``set`` is ran without arguments, it prints the names and values of all shell variables in sorted order. Passing :ref:`scope ` or :ref:`export ` flags allows filtering this to only matching variables, so ``set --local`` would only show local variables. @@ -34,7 +34,7 @@ With ``--erase`` and optionally a scope flag ``set`` will erase the matching var With ``--show``, ``set`` will describe the given variable names, explaining how they have been defined - in which scope with which values and options. -The following scope control variable scope: +The following options control variable scope: **-U** or **--universal** Sets a universal variable.