lua-users home
lua-l archive

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


On 1/11/08, Hans Hagen <pragma@wxs.nl> wrote:
> when called without argument
>
>         dofile()
>
> seems to loop, is this ok?

It's expecting input from stdin it seems:

$ echo print[[test]] | lua -e "dofile()"
test

You can stop the "loop" in the interpreter by sending the EOF character.

- Jim