Doing a little bash scripting and came across a little mystery (well.. a mystery for me anyways). When I type
echo $PWD I get the current working directory echoed to console. How is $PWD being initialized with the current directory? Is it a variable that is maintained by the shell? And if so, where can I find reference to all of these shell variables?