1BASH_BUILTINS(1)            General Commands Manual           BASH_BUILTINS(1)
2
3
4

NAME

6       bash,  :,  .,  [, alias, bg, bind, break, builtin, caller, cd, command,
7       compgen, complete, compopt,  continue,  declare,  dirs,  disown,  echo,
8       enable,  eval,  exec, exit, export, false, fc, fg, getopts, hash, help,
9       history, jobs, kill, let, local, logout, mapfile, popd, printf,  pushd,
10       pwd,  read, readonly, return, set, shift, shopt, source, suspend, test,
11       times, trap, true, type, typeset, ulimit, umask, unalias, unset, wait -
12       bash built-in commands, see bash(1)
13

BASH BUILTIN COMMANDS

15       Unless otherwise noted, each builtin command documented in this section
16       as accepting options preceded by - accepts -- to signify the end of the
17       options.   The  :, true, false, and test builtins do not accept options
18       and do not treat -- specially.  The exit, logout, break, continue, let,
19       and  shift builtins accept and process arguments beginning with - with‐
20       out requiring --.  Other builtins that accept  arguments  but  are  not
21       specified  as accepting options interpret arguments beginning with - as
22       invalid options and require -- to prevent this interpretation.
23       : [arguments]
24              No effect; the command does nothing beyond  expanding  arguments
25              and  performing any specified redirections.  A zero exit code is
26              returned.
27
28        .  filename [arguments]
29       source filename [arguments]
30              Read and execute commands from filename  in  the  current  shell
31              environment  and return the exit status of the last command exe‐
32              cuted from filename.  If filename does not contain a slash, file
33              names  in  PATH  are used to find the directory containing file‐
34              name.  The file searched for in PATH  need  not  be  executable.
35              When  bash  is  not  in  posix  mode,  the  current directory is
36              searched if no file is found in PATH.  If the sourcepath  option
37              to  the  shopt  builtin  command  is turned off, the PATH is not
38              searched.  If any arguments are supplied, they become the  posi‐
39              tional  parameters  when  filename  is  executed.  Otherwise the
40              positional parameters are unchanged.  The return status  is  the
41              status  of  the  last  command exited within the script (0 if no
42              commands are executed), and false if filename is  not  found  or
43              cannot be read.
44
45       alias [-p] [name[=value] ...]
46              Alias with no arguments or with the -p option prints the list of
47              aliases in the form alias name=value on standard  output.   When
48              arguments  are supplied, an alias is defined for each name whose
49              value is given.  A trailing space in  value causes the next word
50              to be checked for alias substitution when the alias is expanded.
51              For each name in the argument list for which no  value  is  sup‐
5