Add builtin -q

Used to query for a builtin's existence, like `type -q` and `functions
-q` can be used to query for a things and a functions existence respectively.
This commit is contained in:
Fabian Homborg
2019-02-09 12:34:00 +01:00
parent 3382a2145f
commit fb7a6e5f34
5 changed files with 42 additions and 3 deletions

View File

@@ -2,7 +2,8 @@
\subsection builtin-synopsis Synopsis
\fish{synopsis}
builtin BUILTINNAME [OPTIONS...]
builtin [OPTIONS...] BUILTINNAME
builtin --query BUILTINNAMES...
\endfish
\subsection builtin-description Description
@@ -12,6 +13,7 @@ builtin BUILTINNAME [OPTIONS...]
The following parameters are available:
- `-n` or `--names` List the names of all defined builtins
- `-q` or `--query` tests if any of the specified builtins exists.
\subsection builtin-example Example