From f18b6868b775241720ca6a86efe65f5f580a7bd7 Mon Sep 17 00:00:00 2001 From: Mahmoud Al-Qudsi Date: Wed, 4 Oct 2017 12:02:52 +0200 Subject: [PATCH] Include --quiet in `command` builtin summary --- doc_src/command.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc_src/command.txt b/doc_src/command.txt index 90c5aee2b..19b1cf13f 100644 --- a/doc_src/command.txt +++ b/doc_src/command.txt @@ -13,6 +13,8 @@ The following options are available: - `-a` or `--all` returns all the external commands that are found in `$PATH` in the order they are found. +- `-q` or `--quiet`, in conjunction with `-s`, silences the output and prints nothing, setting only the exit code. + - `-s` or `--search` returns the name of the external command that would be executed, or nothing if no file with the specified name could be found in the `$PATH`. With the `-s` 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 a `-q` or `--quiet` option prevents any paths from being printed, like the `type -q`, for testing only the exit status.