[tex-live] how to get info about Lua interpreter version from command line
Reinhard Kotucha
reinhard.kotucha at web.de
Sun Jun 4 23:28:40 CEST 2017
On 2017-06-03 at 07:07:47 +0100, Philip TAYLOR wrote:
> Reinhard Kotucha wrote:
> > Try this on the command line:
> >
> > echo '\directlua{print(lua.version)}\end' | luatex | sed -ne '/^\*\*/s/..\(.*\)/\1/p'
>
> Or under Microsoft Windows, at a CMD prompt :
>
> echo \directlua{print(lua.version)}\end | luatex
> This is LuaTeX, Version 1.0.4 (TeX Live 2017/W32TeX)
> restricted system commands enabled.
> **Lua 5.2
You can install MSYS
http://www.mingw.org/wiki/msys
on Windows in order to get sed.exe
The command
sed -ne '/^\*\*/s/..\(.*\)/\1/p'
replaces
| This is LuaTeX, Version 1.0.4 (TeX Live 2017/W32TeX)
| restricted system commands enabled.
| **Lua 5.2
|
| warning (pdf backend): no pages of output.
| Transcript written on texput.log.
by
| Lua 5.2
MSYS also provides a lot of other quite useful tools.
Unlike Cygwin, MSYS only depends on MSVCRT.DLL and the only
requirement is that the supplied programs are in %PATH%.
Regards,
Reinhard
--
------------------------------------------------------------------
Reinhard Kotucha Phone: +49-511-3373112
Marschnerstr. 25
D-30167 Hannover mailto:reinhard.kotucha at web.de
------------------------------------------------------------------
More information about the tex-live
mailing list