[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: What has happened to arg?
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Wed, 5 Jun 2013 07:46:01 -0300
> .../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.