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
Depending on the actual name of the top-level directory where the pre-built package for Windows is unpacked into, the line in the cmd.cmd that sets the MODULESHOME environment variable may set the variable to the wrong value.
To Reproduce
Download, for example, the pre-built package for Windows called modules-5.3.1-win.zip.
Unzip into a folder with the same name e.g. c:\temp\modules\modules-5.3.1-win
Description
Depending on the actual name of the top-level directory where the pre-built package for Windows is unpacked into, the line in the cmd.cmd that sets the MODULESHOME environment variable may set the variable to the wrong value.
To Reproduce
Notice how it seems to be thinking that one of the path segments is "modules-5.3", when it should be "modules-5.3.1-win"
Comment
The issue seems to be in the following line in cmd.cmd:
for %%i in ("%~dp0..") do set "MODULESHOME=%%~dpni"
The "~dpni" seems to be treating ".1-win" as an extension and so that portion gets lost.
A solution could possibly be to use "~dpnxi" instead.
The text was updated successfully, but these errors were encountered: