builtin
Bash builtin
Invoke an enabled shell builtin directly, even if a function has the same name.
Formal Syntax & Structure
bash syntaxbash
builtin name [arg ...]Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| name | string | Builtin name. |
Return Value
exit status
Invoke an enabled shell builtin directly, even if a function has the same name.
Working Example
Example Snippetbash
printf() { builtin printf 'function\n'; }type -t printfprintf ignoredcommand printf 'command\n'builtin printf 'builtin\n'