<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">LGTM.<div class=""><br class=""></div><div class="">Although, I can’t support the `<span style="font-variant-ligatures: no-common-ligatures;" class="">s </span><span style="font-variant-ligatures: no-common-ligatures; color: rgb(193, 101, 28);" class="">=</span><span style="font-variant-ligatures: no-common-ligatures;" class=""> </span><span style="font-variant-ligatures: no-common-ligatures; color: rgb(200, 20, 201);" class="">string</span><span style="font-variant-ligatures: no-common-ligatures;" class="">.</span><span style="font-variant-ligatures: no-common-ligatures; color: rgb(200, 20, 201);" class="">gsub</span><span style="font-variant-ligatures: no-common-ligatures;" class="">(s, </span><span style="font-variant-ligatures: no-common-ligatures; color: rgb(180, 36, 25);" class="">"lua"</span><span style="font-variant-ligatures: no-common-ligatures;" class="">, progname, </span><span style="font-variant-ligatures: no-common-ligatures; color: rgb(180, 36, 25);" class="">1</span><span style="font-variant-ligatures: no-common-ligatures;" class="">)`</span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures;" class="">technique. </span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures;" class=""><br class=""></span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures;" class="">Sergos</span></div><div class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 26 Mar 2021, at 10:42, Sergey Kaplun <<a href="mailto:skaplun@tarantool.org" class="">skaplun@tarantool.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">The argument table `arg` can be read (and modified) by `LUA_INIT` and<br class="">`-e` chunks since the commit 92d9ff211ae864777a8580b5a7326d5f408161ce<br class="">(Set arg table before evaluating LUA_INIT and -e chunks.).<br class=""><br class="">This behaviour is similar to Lua 5.3, so the test was adapted<br class="">considering PUC-Rio Lua 5.3 test suite taken from<br class=""><a href="https://www.lua.org/tests/lua-5.3.0-tests.tar.gz" class="">https://www.lua.org/tests/lua-5.3.0-tests.tar.gz</a>.<br class=""><br class="">Closes tarantool/tarantool#5686<br class="">Part of tarantool/tarantool#5845<br class="">Part of tarantool/tarantool#4473<br class="">---<br class=""> test/PUC-Lua-5.1-tests/main.lua | 14 ++++++++++++--<br class=""> 1 file changed, 12 insertions(+), 2 deletions(-)<br class=""><br class="">diff --git a/test/PUC-Lua-5.1-tests/main.lua b/test/PUC-Lua-5.1-tests/main.lua<br class="">index 4f8b8bf..c11a576 100644<br class="">--- a/test/PUC-Lua-5.1-tests/main.lua<br class="">+++ b/test/PUC-Lua-5.1-tests/main.lua<br class="">@@ -69,9 +69,19 @@ a = string.format(a, progname)<br class=""> prepfile(a)<br class=""> RUN('lua "-e " -- %s a b c', prog)<br class=""><br class="">-prepfile"assert(arg==nil)"<br class="">+-- test 'arg' availability in libraries<br class="">+-- LuaJIT: LuaJIT v2.1.0-beta3 has extension from Lua 5.3:<br class="">+-- The argument table `arg` can be read (and modified)<br class="">+-- by `LUA_INIT` and `-e` chunks.<br class="">+-- See commit 92d9ff211ae864777a8580b5a7326d5f408161ce<br class="">+-- (Set arg table before evaluating LUA_INIT and -e chunks.).<br class="">+-- See also <a href="https://github.com/tarantool/tarantool/issues/5686" class="">https://github.com/tarantool/tarantool/issues/5686</a>.<br class="">+-- In Lua 5.3 this feature was introduced via commit<br class="">+-- 23f0ff95177eda2e0a80e3a48562cc6837705735.<br class="">+-- Test is adapted from PUC-Rio Lua 5.3 test suite.<br class="">+prepfile"assert(arg)"<br class=""> prepfile("assert(arg)", otherprog)<br class="">-RUN("lua -l%s - < %s", prog, otherprog)<br class="">+RUN('env LUA_PATH="?;;" lua -l%s - < %s', prog, otherprog)<br class=""><br class=""> prepfile""<br class=""> RUN("lua - < %s > %s", prog, out)<br class="">-- <br class="">2.31.0<br class=""><br class=""></div></div></blockquote></div><br class=""></div></body></html>