[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: luaL_loadfilex works fine only once per session under Windows.
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Tue, 21 Jan 2014 07:20:13 -0200
> Lua 5.2.3 Copyright (C) 1994-2013 Lua.org, PUC-Rio
> >loadfile()()
> print("Hello,")
> ^Z
> Hello,
> >loadfile()()
> print(" world!")
In Mac OS X (10.7.5), the second loadfile does nothing, which is as
expected, since stdin has already reached EOF by the ^D after the first
loadfile. I've seen programs in Linux being able to read from stdin just
fine after it had reached EOF, but it is not be expected, is it?