lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> .../latest$ src/lua
> Lua 5.2.2  Copyright (C) 1994-2013 Lua.org, PUC-Rio
> > print(arg)
> nil

arg is not present when lua is run in interactive mode.
arg is only present when lua is run in batch mode.

See http://www.lua.org/source/5.2/lua.c.html#handle_script

It has been like this since 5.0.