| Text-only | Table of Contents (frame/ no frame) |
| (10) Preset Variables |
|
$USER),
while others are used only by the shell. set or env $USER, $LOGNAME
$PATH
$TERM
$PAGER
man). This isn't actually used by the shell itself, but
shell scripts should honour it if they need to page output to the user.
$EDITOR
$PWD
$OLDPWD
cd command). However, changing directories
in a script is often dangerous.
$? (readonly)
$-
$IFS
$$ (readonly)
$PPID (readonly)
$! (readonly)
$SECONDS (readonly)
$RANDOM
$RANDOM returns a random integer in the range 0-32k. RANDOM
may be set to "seed" the random number generator.
$LINENO (readonly)
| special-vars.src last modified Mar 26, 2010 | Introduction | Table of Contents (frame/no frame) |
Printable (single file) |
© Dartmouth College |