On Thu, 10 Oct 2002 21:12:01 UT, "Nancy E. Davis" <ne...@fa...>
said:
> Hi Modules-interest,
>
> I am working with modules version 3.1.6 on Tru64 Unix, Tcl 8.4a1.
> I want to evaluate a users env var and use the module file to manipulate
> it. The env var in question is a space delimited list of compiler
> options,
> i.e.,
>
> me@host> echo $DEC_CC
> -L/usr/local/lib -L/var/shlib |
>
> When a user loads a particular module, I want to evaluate if they have
> DEC_CC
> set, what it is set to, and make certain more paths are included. When
> said
> user unloads a module, I want to recall the previous env var and give
> them
> back what they had.
>
> Is this possible? I'm having trouble getting the env var out of the
> users
> environment in any form. If this isn't possible, can I source a script
> at
> the end of the modulefile to do this?
>
> Thanks for any insight you can provide. If further info is needed, it
> will be
> gladly supplied.
>
> Nancy Davis
|