Home Linux

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.

Related commands:

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 NT command:

CALL - Call one batch program from another



Back to the Top

Simon Sheppard
SS64.com