From 5e96f817a6da27d733119dc2e6063b7221c37fcc Mon Sep 17 00:00:00 2001 From: Aaron Gyes Date: Sun, 12 Dec 2021 00:17:16 -0800 Subject: [PATCH] Update command.rst --- doc_src/cmds/command.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc_src/cmds/command.rst b/doc_src/cmds/command.rst index b20ae4cfb..d5f347139 100644 --- a/doc_src/cmds/command.rst +++ b/doc_src/cmds/command.rst @@ -26,11 +26,11 @@ The following options are available: **-v** (or **-s** or **--search**) Prints the external command that would be executed, or prints nothing if no file with the specified name could be found in :envvar:`PATH`. -With the **-v** option, ``command`` treats every argument as a separate command to look up and sets the exit status to 0 if any of the specified commands were found, or 1 if no commands could be found. Additionally passing **--quiet** option prevents any paths from being printed, like ``type -q``. +With the **-v** option, ``command`` treats every argument as a separate command to look up and sets the exit status to 0 if any of the specified commands were found, or 127 if no commands could be found. **--quiet** used with **-v** prevents commands being printed, like ``type -q``. Examples -------- -| ``command ls`` causes fish to execute the ``ls`` program, even if an ``ls`` function exists. -| ``command -s ls`` returns the path to the ``ls`` program. +| ``command ls`` executes the ``ls`` program, even if an ``ls`` function also exists. +| ``command -s ls`` prints the path to the ``ls`` program. | ``command -q git; and command git log`` runs ``git log`` only if ``git`` exists.