mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-04-25 04:11:14 -03:00
No need to define "cmd-foo" anchors; use :doc:`foo <cmds/foo>`
instead. If we want "cmd-foo" but it should be tested.
See also 38b24c2325 (docs: Use :doc: role when linking to commands,
2022-09-23).
37 lines
736 B
ReStructuredText
37 lines
736 B
ReStructuredText
builtin - run a builtin command
|
|
===============================
|
|
|
|
Synopsis
|
|
--------
|
|
|
|
.. synopsis::
|
|
|
|
builtin [OPTIONS] BUILTINNAME
|
|
builtin --query BUILTINNAME ...
|
|
builtin --names
|
|
|
|
Description
|
|
-----------
|
|
|
|
``builtin`` forces the shell to use a builtin command named *BUILTIN*, rather than a function or external program.
|
|
|
|
The following options are available:
|
|
|
|
**-n** or **--names**
|
|
Lists the names of all defined builtins.
|
|
|
|
**-q** or **--query** *BUILTIN*
|
|
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.
|
|
|
|
Example
|
|
-------
|
|
|
|
::
|
|
|
|
builtin jobs
|
|
# executes the jobs builtin, even if a function named jobs exists
|
|
|