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

NameTypeDescription
namestringBuiltin 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'
Bash Reference