[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: /usr/bin/env and the Lua bytecode format
- From: erik@... (Erik Hougaard)
- Date: Thu, 2 Aug 2001 13:48:15 +0200
----- Original Message -----
> executable using the usual Unix trick. Please change the Lua
> interpreter so that it strips the first line in a file if it begins
> with sharp sign no matter if it is a Lua program as text, or the
> result of bytecode compilation.
Please dont change the the interpreter, this is a unix thing. The byte code
should be platform independent. If you want to do this, create a special
version of lua.c that handles your unix requirements both on the compiling
and on the interpreter side.
It will also make the interpreter much more difficult since it looks at the
few bytes to dertermine the file type. And the header in the bytecode file
is fixed in length.
/Erik