Sharing Environment variables

Sharing Environment variables

Post by Charles Plage » Tue, 18 Nov 1997 04:00:00



I want to know what environment variables are shared when I use xterm
(i.e.  $TERM is shared, but not when you use xterm)?
        Thanks for any help and please respond to email,
        Charles Plager
------------------------------------------------------------------

Dept of Physics, UIUC         http://www.physics.uiuc.edu/~cplager
office: (1) 217-244-6164                     fax: (1) 217-333-4990
------------------------------------------------------------------

 
 
 

Sharing Environment variables

Post by Dominik Vog » Sun, 23 Nov 1997 04:00:00



> I want to know what environment variables are shared when I use xterm
> (i.e.  $TERM is shared, but not when you use xterm)?

What do you mean by 'shared'? Do you mean which variables the
xterm process gets from its father, which variables are exported
to the shell running in the xterm or which variables are exported
to the shells children? You'll have to be more specific.
Generally all variables that have been exported with

export FOO (sh, ksh, bash, zsh)

 or

setenv FOO ... (csh, tcsh)

are set in any subsequent child process like in the parent
while all others are not. The xterm gets some variables from
the window manager.

Bye, Dominik
--
-----------------------------------------------------------------
Dominik Vogt                           phone:       07031/16-6852
IBM Deutschland Entwicklung GmbH         fax:            902-6440