From 5adc07bf2840d1a1aaa0fe4f7d3997970ee0d5f8 Mon Sep 17 00:00:00 2001 From: Mahmoud Al-Qudsi Date: Wed, 16 Jan 2019 17:36:42 -0600 Subject: [PATCH] Document new `type -p` support for functions --- 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 f56ab8919..13a0836d3 100644 --- a/doc_src/type.txt +++ b/doc_src/type.txt @@ -17,7 +17,7 @@ The following options are available: - `-t` or `--type` prints `function`, `builtin`, or `file` if `NAME` is a shell function, builtin, or disk file, respectively. -- `-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 `--path` prints the path to `NAME` if `NAME` resolves to an executable file in $PATH, the path to the script containing the definition of the function `NAME` if `NAME` resolves to a function loaded from a file on disk (i.e. not interactively defined at the prompt), or nothing otherwise. - `-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.