From 1b23814f8b7f3c0452482320299292bf60f4d061 Mon Sep 17 00:00:00 2001 From: Mahmoud Al-Qudsi Date: Wed, 16 Jan 2019 17:41:21 -0600 Subject: [PATCH] Clarify the point of `type --force-path` [docs] [ci skip] --- doc_src/type.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc_src/type.txt b/doc_src/type.txt index 2d1a56abf..f56ab8919 100644 --- a/doc_src/type.txt +++ b/doc_src/type.txt @@ -19,7 +19,7 @@ The following options are available: - `-p` or `--path` returns the name of the disk file that would be executed, or nothing if `type -t name` would not return `file`. -- `-P` or `--force-path` returns the name of the disk file that would be executed, or nothing if no file with the specified name could be found in the $PATH. +- `-P` or `--force-path` returns the path to the executable file `NAME`, presuming `NAME` is found in $PATH, or nothing otherwise. `--force-path` explicitly resolves only the path to executable files in $PATH, regardless of whether `$NAME` is shadowed by a function or builtin with the same name. - `-q` or `--quiet` suppresses all output; this is useful when testing the exit status.