lua-users home
lua-l archive

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

Am 07.08.2016 um 23:39 schröbte Robert Virding:


I implement luerl, an Lua implementation running on top of erlang/OTP (, and try to keep it as compatible as I
can with standard Lua, currently Lua 5.2.

One thing I have noticed is that is skips leading "shebang" line, that is a
line which starts with "#! / ...". This is useful for scripts and for
loading script files into Lua. Where is this documented? Is it documented?
I have tried to find it but haven't been successful.

It also skips leading BOM as well.

AFAIK, the Lua manual doesn't say anything about a BOM. Maybe your C library is responsible?!

Thanks for any help,