mirror of
https://github.com/envmodules/modules.git
synced 2026-06-14 00:42:43 +08:00
Introduce a memory cache for the results build up by getModules procedure. Done in order to reuse these results if next searches are identical, which happens in whatis/search context. As a side effect a module resolution cannot be changed by the evaluation of a modulefile sharing same root name, as the initial module resolution to find this modulefile to evaluation has cached resolution result. This side effect should not however impact more than the project testsuite as module resolution should not be defined within a modulefile but within modulerc files.
33 lines
844 B
Plaintext
33 lines
844 B
Plaintext
#%Module1.0
|
|
|
|
##############################################################################
|
|
# Modules Revision 3.0
|
|
# Providing a flexible user environment
|
|
#
|
|
# File: loc_sym/%M%
|
|
# Revision: %I%
|
|
# First Edition: 95/12/06
|
|
# Last Mod.: %U%, %G%
|
|
#
|
|
# Authors: Jens Hamisch, Jens.Hamisch@Strawberry.COM
|
|
#
|
|
# Description: Testuite modulefile
|
|
# Command:
|
|
# Sub-Command: module-version
|
|
#
|
|
# Invocation: load @M@/@V@ @M@/foo
|
|
# Result: %R{
|
|
# setenv _LMFILES_ ${_LMFILES_}:@M@/@V@
|
|
# setenv LOADEDMODULES ${LOADEDMODULES}:@P@/@M@/@V@
|
|
# setenv testsuite loc_sym/1.0
|
|
# }R%
|
|
# Comment: %C{
|
|
# Checks the execution of a 'module-version'
|
|
# command issued herein.
|
|
# }C%
|
|
#
|
|
##############################################################################
|
|
|
|
module-alias loc_sym2/1.0 loc_sym/1.0
|
|
module-version loc_sym2/1.0 foo
|