It creates a copy of the .(dot) files of the user. The original are backed up for restoration later. The new copies have the modulefiles additions and changes added to them and then the new shell is started for the caller.
Bruce On Aug 21, 2009, at 2:47 PM, Roland Mainz wrote: > John Fischer wrote: >> >> PSARC, >> >> I am sponsoring this project for Bruce Rothermal who will be >> integrating >> this project via the SFW consolidation. I have set the timer for >> Friday, >> August 28th. The case directory contains this proposal, FOSS check >> list, >> and appropriate man pages. >> >> This project proposes to integrate the Environment Modules within a >> Minor release of Solaris (i.e., Open Solaris). The environment >> modules >> provides an easy modification to a user's environment via TCL >> scripts. >> These scripts set various environmental variables such as PATH, >> MANPATH, >> etc. > [snip] >> 4. Technical Description: >> >> The environment modules package provides for an easy dynamic >> modification of a user's environment via modulefiles. which >> typically instruct the module command to alter or set shell >> environment variables such as PATH, MANPATH, etc. > > How does this work ? AFAIK the shells have no API which allow another > process to just write or override the values of shell-internal > values ? > Or is it expected that existing commands in /usr/bin/ are replaced > with > the "module" wrapper and then select a matching binariy from { > /usr/gnu/bin/, /usr/oldsystemvcmd/bin/, /usr/bsd/bin/ etc. } ? > > ---- > > Bye, > Roland > > -- > __ . . __ > (o.\ \/ /.o) roland.mainz at nrubsig.org > \__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer > /O /==\ O\ TEL +49 641 3992797 > (;O/ \/ \O;) -------------- next part -------------- Bruce Rothermal Email: bruce.rothermal at sun.com Skype: bruce.rothermal Google Talk: bruce.rothermal at gmail.com