Adding environment variables to bash.

John Lawrence mail at
Thu Sep 11 11:28:15 CEST 2008

> when a process starts, it gets a *copy* of the parent's environment.  it
> can modify that copy, but it cannot modify the variables in the parent.

You can make a command use the current shell though if you use the '.'
command e.g.:

jl > cat
export TEST='hello'

jl > ./ && env | grep TEST          #Doesn't set TEST in parent shell
jl > . ./ && env | grep TEST          #Adding '. ' before the command
uses the same shell

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list