mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-06 00:41:15 -03:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user