 They can also be used to store temporary values for reference later in a shell script.However, in Unix, not exported variables are preferred for this as they don't leak outside the process.In Unix, an environment variable that is changed in a script or compiled program will only affect that process and possibly child processes.