In windows, i think it is necessary to create a bat version of a lua file, if you wish to execute it from the command line. This is used for things like busted and luacheck and perhaps others.
It appears that there is a facility to wrap a lua file in this way. I believe that it happens in `win32.wrap_script` in `/fs/win32.lua`. I am curious about how this is accomplished. In looking at the file, it appears that you set the luafile variable to the file name at the top, but I can't grok how you are making this work with the path. When I've done this, I make sure that the 'myutil.lua' file and the 'myutil.bat' file are sitting next to each other and I writhe the following: (assuming that lua.exe is in the path) ``` @echo off lua.exe %~dp0\myutil.lua %0 ``` `%~dp0` expands to the path of the `myutil.bat` file, which would be the wrapper. I don't see where you've done that. Did you do it differently and if so, why? -Andrew ------------------------------------------------------------------------------ Dive into the World of Parallel Programming! The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net _______________________________________________ Luarocks-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/luarocks-developers
