And make it a repository for additional test modulefiles that do not
need to take part in the global avail tests made over the main
repository (modulefiles) and who could mixed with others (like other and
other2).
Now getAbsolutePath procedure, which make a path passed as argument an
absolute path, check the current path of the interpreted modulefile or
modulerc rather always taking the current path of the module command
execution.
So a modulefile or modulerc can use relative paths based on a
determistic way as it is now based on their location. Previously it was
not possible as relative paths were dependent of the location from where
the module command was executed.
If ModulesCurrentModulefile variable is not empty, getAbsolutePath nows
it is called during a modulefile/modulerc interpretation, so it takes
the directory name of this ModulesCurrentModulefile as current working
directory.
Adapt cmdModuleUse to handle empty path name "" as any other path
string, so an error is returned when file type is cheked.
Add tests in 10-use and 50-cmds suites to check behavior of use and
unuse commands with an empty path passed as argument.
Add by the way tests that were missing for bash shell in 10-use suite.
an modules environment for all users through the system shell
files. Is specific to Linux/RedHat 7.x, but is of general
applicability.
* Added further tests for modulefile "module use dir_path"
(found an unload bug that will be fixed before release)
* Environment variable contents are now quoted to preserve
any embedded environment variables. (Needed for versioning)
* Added over 50 tests specific to module versioning, and testing
xgetenv.
* Fixed the unsetenv on unload function, the feature added in 3.0.6-rko
was supposed to set the env.var. to the optional third argument.
This was to allow old env.var. values to be recovered by unraveling
a stack set in an other env.var. Added tests for this feature.
This is used by the version modulefile.
* Fixed and updated the version modulefile to allow stacked
versions to be removed the stack.
* Removed an annoying spurious stderr newline.