| [ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
5.1 Bourne Shell Variables
Bash uses certain shell variables in the same way as the Bourne shell. In some cases, Bash assigns a default value to the variable.
CDPATHA colon-separated list of directories used as a search path for the
cdbuiltin command.HOMEThe current user’s home directory; the default for the
cdbuiltin command. The value of this variable is also used by tilde expansion (see section Tilde Expansion).IFSA list of characters that separate fields; used when the shell splits words as part of expansion.
MAILIf this parameter is set to a filename or directory name and the
MAILPATHvariable is not set, Bash informs the user of the arrival of mail in the specified file or Maildir-format directory.MAILPATHA colon-separated list of filenames which the shell periodically checks for new mail. Each list entry can specify the message that is printed when new mail arrives in the mail file by separating the filename from the message with a ‘?’. When used in the text of the message,
$_expands to the name of the current mail file.OPTARGThe value of the last option argument processed by the
getoptsbuiltin.OPTINDThe index of the last option argument processed by the
getoptsbuiltin.PATHA colon-separated list of directories in which the shell looks for commands. A zero-length (null) directory name in the value of
PATHindicates the current directory. A null directory name may appear as two adjacent colons, or as an initial or trailing colon.PS1The primary prompt string. The default value is ‘\s-\v\$ ’. See section Controlling the Prompt, for the complete list of escape sequences that are expanded before
PS1is displayed.PS2The secondary prompt string. The default value is ‘> ’.
| [ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
This document was generated on February 28, 2014 using texi2html 5.0.
