08-28-2010 05:16 AM
Environmental variables are inherited variables from a parent process. A variable that you declare (in a shell) and subsequently 'export' (or 'setenv' in a C-shell) becomes an environmental variable. As such, any child process created, inherits that variable.
08-28-2010 07:37 AM
and the shell variables are just related to the shell itself which are used for the shell specific purpose(LOCAL VARIABLES)..
child shell inherits the environment variables from parent shell,if we want to inherit the shell variables also then we have to export that particular shell variable from parent shell...
08-31-2010 04:01 AM
However, shell variables are local to that shell .if you open another shell these values will not get copied to that shell.