lua-users home
lua-l archive

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

This is certainly a stupid thing to do, but nonetheless I don't think
it should hang a process.  Try the following:

Lua 5.1.4  Copyright (C) 1994-2008, PUC-Rio
> dofile(nil)

This was on OSX (10.5.x).  IMHO it should check for a nil arg and
simply return with an error like dofile('') does:

Lua 5.1.4  Copyright (C) 1994-2008, PUC-Rio
> dofile('')
cannot open : No such file or directory
stack traceback:
	[C]: in function 'dofile'
	stdin:1: in main chunk
	[C]: ?

please consider fixing this for a future version.