On Mon, May 21, 2001 at 12:42:39PM -0700, larry a price wrote:
>
> so if those statements are in a script executed by root at startup that
> variable should be set for all user sessions, right?
>
A simple test ... well, not really, but it can give some idea of how export
works.
$ export THIS=test1 && echo 'export MY_VAR=test2\necho ${MY_VAR}' > ${THIS} \
&& sh ${THIS} && echo ${MY_VAR} && echo ${THIS}
Basically, xdm and getty lose the variable. They are what start the user
sessions, if I'm not mistaken.
<[EMAIL PROTECTED]>