builtin

Execute the specified shell builtin, passing it arguments, and return its exit status.

Syntax
      builtin shell-builtin [arguments]

This is useful when defining a function whose name is the same as a shell builtin, retaining the functionality of the builtin within the function. The cd builtin is commonly redefined this way.

The return status is false if shell-builtin is not a shell builtin command.

builtin is itself a builtin command in both bash and Zsh.

Examples

Run the builtin command ls:

$ builtin ls

Related macOS commands

Local man page: builtin - Command line help page on your local machine.
bash - Launch the Bourne-Again SHell.

“If names be not correct, language is not in accordance with the truth of things. If language be not in accordance with the truth of things, affairs cannot be carried on to success” ~ Confucius


 
Copyright © 1999-2026 SS64.com
Some rights reserved