builtin: Run a shell builtin

Run a shell builtin, passing it args, and return its exit status.
SYNTAX
builtin [shell-builtin [args]]
This is useful when defining a shell function with the same name as a shell builtin, retaining the functionality of the builtin within the function.

For example, to write a function to replace `cd?
that writes the hostname and current directory
to an xterm title bar:

cd()

{

builtin cd "$@" && xtitle "$HOST: $PWD"

}
The return status is non-zero if shell-builtin is not a
shell builtin command.
"More people are killed every year by pigs than by sharks, which shows just how good we are at evaluating risks" - Bruce Schneier
Related:

chroot - Run a command with a different root directory
cron - Daemon to execute scheduled commands
exec - Execute a command
if - Conditionally perform a command
nohup - Run a command immune to hangups
su - Run a command with substitute user and group id
shopt - Shell Options
.source
- Run commands from a file
type - Describe a command
watch - Execute/display a program periodically
Equivalent Windows command: CALL - Call one batch program from another
Tags
Comments
Write the first comment
Leave a trace
Name *
Email *
Website
Anti SPAM * Code (1 + 5) =
Leave me a comment *
 
All comments are subject to editorial review
Post being viewed right now
Item date: 01.07.2008
Views: 2167
Item date: 09.03.2009
Views: 777
Item date: 06.02.2009
Views: 1267
Item date: 06.02.2009
Views: 2186
Item date: 11.04.2009
Views: 1303
Item date: 03.01.2009
Views: 2010
Item date: 15.05.2009
Views: 610
Item date: 10.04.2009
Views: 652
Item date: 19.07.2009
Views: 1162