docs: Document type/builtin exit status

Fixes #9252
This commit is contained in:
Fabian Boehm 2022-09-30 18:50:14 +02:00
parent 521dc5c5d0
commit a7f3af921f
2 changed files with 2 additions and 1 deletions

View File

@ -23,7 +23,7 @@ The following options are available:
Lists the names of all defined builtins.
**-q** or **--query** *BUILTIN*
Tests if any of the specified builtins exist.
Tests if any of the specified builtins exist. If any exist, it returns 0, 1 otherwise.
**-h** or **--help**
Displays help about using this command.

View File

@ -43,6 +43,7 @@ The following options are available:
The **-q**, **-p**, **-t** and **-P** flags (and their long flag aliases) are mutually exclusive. Only one can be specified at a time.
``type`` returns 0 if at least one entry was found, 1 otherwise, and 2 for invalid options or option combinations.
Example
-------