> Jes Slow <cluelesscoder at gmail.com> wrote:
> 
> > Many applications do this by allowing the user to set an environment
> > variable to customize the location, altho personally I would prefer
> > another way since environment variables are also global.
> 
> Global?  Environment variables are per-process, and changeable by the
> process with putenv(3).

Each process when it starts gets a "copy" of its parent process environment, 
which it may modify and will be "copied" to its children.  The "first process" 
creates the "first environment" by copying from its parent (NUL) and passing 
its modifications along to its children.







Reply via email to