lua-users home
lua-l archive

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


Testing luaposix-33, I stumbled upon these things:

* The files in /usr/share/lua/5.2/posix/ use a variable _DEBUG which is
not declared local. This causes programs to crash where "require
'strict'" precedes "require 'posix'". Has this variable intentionally
been made global?

* Calling "stat(f)" where f is the name of a non-existing file causes
this error message
    /usr/share/lua/5.2/posix/deprecated.lua:932: attempt to index local
'info' (a nil value)

instead of just returning nil. I think the corresponding line should read:

  return info and doselection ("stat", 1, {...}, {

Best regards,
Bernd