Re: Adding environment variables to bash.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Fredrik Lundh

    Re: Adding environment variables to bash.

    aditya shukla wrote:
    Can i add any environment variable to bash from my python script? so
    that when i use env command then i can see that environment variable.
    not if you run the script from the shell.

    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.

    </F>

Working...