lua-users home
lua-l archive

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


On 21-Dec-15 09:01, Dirk Laurie wrote:
I can think of two solutions:

1. Modify lua.c to have a `-q` option that suppresses the welcome
message even when the REPL is about to be entered,
2. Work without `-i` and use debug.debug to provide the REPL.
This is not very nice since debug.debug does not provide readline
support, history etc.

Am I missing a trick somewhere?

I am not sure I understood correctly how it should behave, but couldn't you os.execute() a Lua interpreter in the no-parameters case?

--
  Enrico