[ < ] [ > ]   [ << ] [ Acima ] [ >> ]         [Topo] [Conteúdo] [Índice] [ ? ]

4. Comandos Nativos do Shell

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 (veja seção 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 (veja seção Job Control Builtins), the directory stack (veja seção Directory Stack Builtins), the command history (veja seção Bash History Builtins), and the programmable completion facilities (veja seção 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. The :, true, false, and test builtins do not accept options and do not treat ‘--’ specially. The exit, logout, break, continue, let, and shift builtins accept and process arguments beginning with ‘-’ without requiring ‘--’. Other builtins that accept arguments but are not specified as accepting options interpret arguments beginning with ‘-’ as invalid options and require ‘--’ to prevent this interpretation.


[ < ] [ > ]   [ << ] [ Acima ] [ >> ]         [Topo] [Conteúdo] [Índice] [ ? ]

Esse documento foi gereado por Jeremias em 19 de Junho de 2013 usando texi2html 1.82.