Next: Bash Variables, Up: Shell Variables [Contents][Index]
Bash uses certain shell variables in the same way as the Bourne shell. In some cases, Bash assigns a default value to the variable.
CDPATH
cd
builtin command.HOME
cd
builtin command. The value of this variable is also used by tilde expansion (see Tilde Expansion).IFS
MAIL
MAILPATH
variable is not set, Bash informs the user of the arrival of mail in the specified file or Maildir-format directory.MAILPATH
?
’. When used in the text of the message, $_
expands to the name of the current mail file.OPTARG
getopts
builtin.OPTIND
getopts
builtin.PATH
PATH
indicates the current directory. A null directory name may appear as two adjacent colons, or as an initial or trailing colon.PS1
\s-\v\$
’. See Controlling the Prompt, for the complete list of escape sequences that are expanded before PS1
is displayed.PS2
>
’. PS2
is expanded in the same way as PS1
before being displayed.Next: Bash Variables, Up: Shell Variables [Contents][Index]