The commandline scripts generated (by `install.bat`, only write the interpreter name into the shell script/batch file for luarocks usage. See [this line](https://github.com/keplerproject/luarocks/blob/master/install.bat#L710).

So if it was installed against `lua.exe`, then it will simply call `lua.exe` and not care about the absolute path, so another `lua.exe` earlier in the path might be used to execute LuaRocks itself.

That said; that line is the only line to be updated with an absolute path, easy fix.

Do I understand correctly that on Unix, the interpreter found during the installation is always used for LuaRocks invocations? If so then adding the absolute path will fix a platform difference, and this issue.

@ignacio Do you see any drawbacks?