mirror of
https://github.com/envmodules/modules.git
synced 2026-06-10 00:56:30 +08:00
Add 'loaded' sub-command to the 'module-info' modulefile Tcl command. This new sub-command returns name of the modules currently loaded corresponding to the name passed as argument. May return multiple modules if passed name matches more than one loaded modules. Document new command in modulefile.4 and test it with a 285-info-loaded tests in 50-cmds suite. Acknowledgment: this development has been made and funded within the framework of the PRACE Fifth Implementation Phase (PRACE-5IP) project (http://www.prace-ri.eu/). PRACE-5IP receives funding from the EU's Horizon 2020 research and innovation programme (2014-2020) under grant agreement no. 730913.
31 lines
812 B
Plaintext
31 lines
812 B
Plaintext
#%Module1.0
|
|
|
|
##############################################################################
|
|
# Modules Revision 3.0
|
|
# Providing a flexible user environment
|
|
#
|
|
# File: info/%M%
|
|
# Revision: %I%
|
|
# First Edition: 2017/11/30
|
|
# Last Mod.: %U%, %G%
|
|
#
|
|
# Authors: Xavier Delaruelle, xavier.delaruelle@cea.fr
|
|
#
|
|
# Description: Testuite modulefile
|
|
# Command:
|
|
# Sub-Command: setenv, module-info loaded
|
|
#
|
|
# Invocation: load @M@/@V@
|
|
# Result: %R{
|
|
# }R%
|
|
# Comment: %C{
|
|
# The 'module-info loaded name' command retrieves loaded version
|
|
# of the given module 'name'
|
|
# }C%
|
|
#
|
|
##############################################################################
|
|
|
|
setenv testsuite1 "[module-info loaded info/name]"
|
|
setenv testsuite2 "[module-info loaded info]"
|
|
setenv testsuite3 "[module-info loaded inf]"
|