Bash.Builtin.Builtin (Bash v0.6.0)

Copy Markdown View Source

builtin [shell-builtin [arg ...]]

Execute the specified shell builtin, passing it args, and return its exit status. This is useful when you wish to define a shell function with the same name as a shell builtin, retaining the functionality of the builtin within the function.

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

Exit Status: Returns the exit status of SHELL-BUILTIN, or false if SHELL-BUILTIN is not a shell builtin.

Reference: https://cgit.git.savannah.gnu.org/cgit/bash.git/plain/builtins/builtin.def?h=bash-5.3