 If two shell processes are spawned and the value of an environment variable is changed in one, that change will not be seen by the other.When a child process is created, it inherits all the environment variables and their values from the parent process.Usually, when a program calls another program, it first creates a child process by forking, then the child adjusts the environment as needed and lastly the child replaces itself with the program to be called.