Much of the power of environment variables lies in the way that they may be substituted into configuration files. Variable substitutions are described below.
The line is scanned from left to right. In this scan, all characters other than dollar signs ($) are retained unmolested. Dollar signs, however, introduce an environment variable reference. References take three forms:
$
var${
var}
$$
Undefined variables expand to a empty value.