next up previous
Next: Executing Commands Up: Shells Previous: Shell Choice

Environments

Shells provide mechanisms by which variables may be modified. In Bourne-ish shells, the syntax is
$ VARIABLE=VALUE.
[csh: setenv VARIABLE VALUE]

In order for this variable to propagated to child processes, it must be exported using
$ export VARIABLE.

A child program cannot directly change the environment of any other process. To see your current environment, type
$ printenv



Reece Kimball Hart
1998-03-18