Hi Bram,

On Sat, Apr 3, 2021 at 6:38 AM Bram Moolenaar <[email protected]> wrote:
>
>
> I wrote:
>
> > Patch 8.2.2698 (after 8.2.2696)
> > Problem:    Lua test fails on MS-Windows.
> > Solution:   Fall back to old method if "lua -v" doesn't work.
> > Files:      src/testdir/test_lua.vim
>
> This probably still fails with the "lua" command has a different version
> than the library that Vim was built with.  I hope someone can figure
> out a better solution to get the patch level.
>

Yes. The Lua _VERSION global variable only contains the major and
minor version numbers. It doesn't have the patch version number.
When the lua command is invoked with the "-v" argument, then it
displays all the three version numbers. But if the lua executable is
not present in the PATH or some other version is found, then we may
get the wrong Lua version. I hope someone more familiar with Lua
can chime in with a solution to get the Lua version.

https://www.lua.org/manual/5.3/manual.html#pdf-_VERSION
https://stackoverflow.com/questions/18268528/is-it-possible-to-get-lua-interpreter-version-information-in-script

Regards,
Yegappan

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/CAAW7x7nporNobrpkZZbBNV6w01hv0apCUM-iz4MHnC%2BrGx9qtQ%40mail.gmail.com.

Raspunde prin e-mail lui