[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

4. Shell Builtin Commands

Builtin commands are contained within the shell itself. When the name of a builtin command is used as the first word of a simple command (see section Simple Commands), the shell executes the command directly, without invoking another program. Builtin commands are necessary to implement functionality impossible or inconvenient to obtain with separate utilities.

This section briefly describes the builtins which Bash inherits from the Bourne Shell, as well as the builtin commands which are unique to or have been extended in Bash.

Several builtin commands are described in other chapters: builtin commands which provide the Bash interface to the job control facilities (see section Job Control Builtins), the directory stack (see section Directory Stack Builtins), the command history (@pxref{Bash History Builtins}), and the programmable completion facilities (@pxref{Programmable Completion Builtins}).

Many of the builtins have been extended by POSIX or Bash.

Unless otherwise noted, each builtin command documented as accepting options preceded by `-' accepts `--' to signify the end of the options. For example, the :, true, false, and test builtins do not accept options.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]

copyright  ©  July 07 2008 sean dreilinger url: http://durak.org/sean/pubs/software/bash/bashref_14.html