Dear list,

The following Lua script behaves differently when executed in Lua vs.
LuaTeX.

    print(os.execute("date"))

It seems that the definition of os_execute in loslibext.c was copied
over from Lua 5.1 and not adapted to newer versions.

    $ lua5.1 test.lua
    0
    $ lua5.2 test.lua
    true        exit    0
    $ lua5.3 test.lua
    true        exit    0
    $ texlua test.lua
    0
    $ luajit test.lua
    0
    $ texluajit test.lua
    0

As you can see from the example, this comes with the additional
complication that LuaJIT has Lua 5.1 behaviour and should also retain
that.

Cheers, Henri
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to