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.
29 lines
677 B
Plaintext
29 lines
677 B
Plaintext
#%Module1.0
|
|
|
|
##############################################################################
|
|
# Modules Revision 3.0
|
|
# Providing a flexible user environment
|
|
#
|
|
# File: loc_sym/%M%
|
|
# Revision: %I%
|
|
# First Edition: 2018/01/13
|
|
# Last Mod.: %U%, %G%
|
|
#
|
|
# Authors: Xavier Delaruelle, xavier.delaruelle@cea.fr
|
|
#
|
|
# Description: Testuite modulefile
|
|
# Command:
|
|
# Sub-Command: module-virtual
|
|
#
|
|
# Invocation: load @M@/@V@ @M@/2.0
|
|
# Result: %R{
|
|
# }R%
|
|
# Comment: %C{
|
|
# Checks the execution of a 'module-virtual'
|
|
# command issued herein.
|
|
# }C%
|
|
#
|
|
##############################################################################
|
|
|
|
module-virtual loc_sym2/2.0 1.0
|