Using a bare variable reference to define the entire path entry in MODULEPATH does not work:
$ export VAR=/tmp
$ module use
WARNING: No directories on module search path
$ module use \$VAR
ERROR: Directory '/home/user/$VAR' not found
$ module use
WARNING: No directories on module search path
$ module use /\$VAR
$ module use
Search path for module files (in search order):
/tmp
The current directory is always added as a prefix to the variable reference.
Using a bare variable reference to define the entire path entry in MODULEPATH does not work:
The current directory is always added as a prefix to the variable reference.