You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit b5b1c40
Browse filesBrowse the repository at this point in the historyBrowse files
Add module-info modulename and moduleversion modulefile commands
module-info name returns the full name of the evaluating modulefile,
like app/1.2.3, whereas modulefile authors frequently need only its
version part, to build an installation path for instance. Getting it
required Tcl string manipulation like [file tail [module-info name]],
an idiom that newcomers find hard to read and that gets copied around
with small variations.
module-info moduleversion returns the part of the module name after
its last / character and module-info modulename the part before it.
Both work on the name resolved for the evaluation, so symbolic versions
and aliases are handled like module-info name does. A name holding no
/ character gives an empty version and is returned whole as name part.
Fixes#713
Assisted-by: Claude:claude-fable-5-1
Signed-off-by: Xavier Delaruelle <xavier.delaruelle@cea.fr>
0 commit comments