lua-users home
lua-l archive

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


> On this page https://www.lua.org/pil/1.4.html
> 
> I think
> 	prompt> lua -i -l a.lua -e "x = 10"
> 
> should be
> 	prompt> lua -i -l a -e "x = 10"

Your subject "PIL4" is quite confusing. The book on the site in PiL1
(the first edition of Programming in Lua), and it uses Lua 5.0. In
that version, -l loads a file, not a library, and as such it requires 
the full name of the file.

-- Roberto