mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-27 03:13:37 +08:00
fb7a6e5f34
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.
25 lines
613 B
Plaintext
25 lines
613 B
Plaintext
\section builtin builtin - run a builtin command
|
|
|
|
\subsection builtin-synopsis Synopsis
|
|
\fish{synopsis}
|
|
builtin [OPTIONS...] BUILTINNAME
|
|
builtin --query BUILTINNAMES...
|
|
\endfish
|
|
|
|
\subsection builtin-description Description
|
|
|
|
`builtin` forces the shell to use a builtin command, rather than a function or program.
|
|
|
|
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
|
|
|
|
\fish
|
|
builtin jobs
|
|
# executes the jobs builtin, even if a function named jobs exists
|
|
\endfish
|