Hi
According to module(1), modulecmd will source Module RC files,
e.g. $MODULESHOME/etc/rc, $MODULERCFILE, or ~/.modulerc, if exists,
prior to loading the modulefile of the given application/software.
I have some Tcl variables and procedures defined in Module RC files, but
when I tried to access the Tcl variables or the procedures in the
application modulefiles, modulecmd complained they were not defined.
It seems to me that the lifespan/scope for Tcl variable and procedure is
per file, instead of per modulecmd invocation. This practically limits
the usefulness of the Module RC files.
Is this the intended feature of modulecmd, or does such feature just
haven't been enhanced to modulecmd?
I don't know much about programming Tcl-based application in C to
understand the source codes if this is the limitation of Tcl library or
it is just lack of such feature in the current release of Modules.
FYI, I'm using Modules 3.1.5 with Tcl 8.3.3 and both tcsh 6.11 and bash
2.05 shells.
Thanks.
Hon-Chi
------------------------------------------------------------
--== Sent via Deja.com ==--
http://www.deja.com/
|