[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
These variables are set or used by Bash, but other shells do not normally treat them specially.
A few variables used by Bash are described in different chapters: variables for controlling the job control facilities (see section 7.3 Job Control Variables).
BASH
BASH_ENV
BASH_VERSION
BASH_VERSINFO
BASH_VERSINFO[0]
BASH_VERSINFO[1]
BASH_VERSINFO[2]
BASH_VERSINFO[3]
BASH_VERSINFO[4]
BASH_VERSINFO[5]
MACHTYPE
.
COLUMNS
select
builtin command to determine the terminal width
when printing selection lists. Automatically set upon receipt of a
SIGWINCH
.
COMP_CWORD
${COMP_WORDS}
of the word containing the current
cursor position.
This variable is available only in shell functions invoked by the
programmable completion facilities (see section 8.6 Programmable Completion).
COMP_LINE
COMP_POINT
${#COMP_LINE}
.
This variable is available only in shell functions and external
commands invoked by the
programmable completion facilities (see section 8.6 Programmable Completion).
COMP_WORDS
COMPREPLY
DIRSTACK
dirs
builtin.
Assigning to members of this array variable may be used to modify
directories already in the stack, but the pushd
and popd
builtins must be used to add and remove directories.
Assignment to this variable will not change the current directory.
If DIRSTACK
is unset, it loses its special properties, even if
it is subsequently reset.
EUID
FCEDIT
fc
builtin command.
FIGNORE
FIGNORE
is excluded from the list of matched file names. A sample
value is `.o:~'
FUNCNAME
FUNCNAME
have no effect and return an error status.
If FUNCNAME
is unset, it loses its special properties, even if
it is subsequently reset.
GLOBIGNORE
GLOBIGNORE
, it is removed from the list
of matches.
GROUPS
GROUPS
have no effect and return an error status.
If GROUPS
is unset, it loses its special properties, even if it is
subsequently reset.
histchars
HISTCMD
HISTCMD
is unset, it loses its special properties,
even if it is subsequently reset.
HISTCONTROL
HISTCONTROL
.
HISTFILE
HISTFILESIZE
HISTIGNORE
HISTCONTROL
are applied. In addition to the normal shell pattern matching
characters, `&' matches the previous history line. `&'
may be escaped using a backslash; the backslash is removed
before attempting a match.
The second and subsequent lines of a multi-line compound command are
not tested, and are added to the history regardless of the value of
HISTIGNORE
.
HISTIGNORE
subsumes the function of HISTCONTROL
. A
pattern of `&' is identical to ignoredups
, and a
pattern of `[ ]*' is identical to ignorespace
.
Combining these two patterns, separating them with a colon,
provides the functionality of ignoreboth
.
HISTSIZE
HOSTFILE
HOSTFILE
is set, but has no value, Bash attempts to read
`/etc/hosts' to obtain the list of possible hostname completions.
When HOSTFILE
is unset, the hostname list is cleared.
HOSTNAME
HOSTTYPE
IGNOREEOF
EOF
character
as the sole input. If set, the value denotes the number
of consecutive EOF
characters that can be read as the
first character on an input line
before the shell will exit. If the variable exists but does not
have a numeric value (or has no value) then the default is 10.
If the variable does not exist, then EOF
signifies the end of
input to the shell. This is only in effect for interactive shells.
INPUTRC
LANG
LC_
.
LC_ALL
LANG
and any other
LC_
variable specifying a locale category.
LC_COLLATE
LC_CTYPE
LC_MESSAGES
LC_NUMERIC
LINENO
LINES
select
builtin command to determine the column length
for printing selection lists. Automatically set upon receipt of a
SIGWINCH
.
MACHTYPE
MAILCHECK
MAILPATH
or MAIL
variables.
The default is 60 seconds. When it is time to check
for mail, the shell does so before displaying the primary prompt.
If this variable is unset, or set to a value that is not a number
greater than or equal to zero, the shell disables mail checking.
OLDPWD
cd
builtin.
OPTERR
getopts
builtin command.
OSTYPE
PIPESTATUS
POSIXLY_CORRECT
bash
starts, the shell
enters POSIX mode (see section 6.11 Bash POSIX Mode) before reading the
startup files, as if the `--posix' invocation option had been supplied.
If it is set while the shell is running, bash
enables POSIX mode,
as if the command
|
PPID
PROMPT_COMMAND
$PS1
).
PS3
select
command. If this variable is not set, the
select
command prompts with `#? '
PS4
PS4
is replicated multiple times, as
necessary, to indicate multiple levels of indirection.
The default is `+ '.
PWD
cd
builtin.
RANDOM
REPLY
read
builtin.
SECONDS
SHELLOPTS
set
builtin command (see section 4.3 The Set Builtin).
The options appearing in SHELLOPTS
are those reported
as `on' by `set -o'.
If this variable is in the environment when Bash
starts up, each shell option in the list will be enabled before
reading any startup files. This variable is readonly.
SHLVL
TIMEFORMAT
time
reserved word should be displayed.
The `%' character introduces an
escape sequence that is expanded to a time value or other
information.
The escape sequences and their meanings are as
follows; the braces denote optional portions.
%%
%[p][l]R
%[p][l]U
%[p][l]S
%P
The optional p is a digit specifying the precision, the number of fractional digits after a decimal point. A value of 0 causes no decimal point or fraction to be output. At most three places after the decimal point may be specified; values of p greater than 3 are changed to 3. If p is not specified, the value 3 is used.
The optional l
specifies a longer format, including minutes, of
the form MMmSS.FFs.
The value of p determines whether or not the fraction is included.
If this variable is not set, Bash acts as if it had the value
|
TMOUT
UID
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |