lua-users home
lua-l archive

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



On Mon, Oct 14, 2013 at 5:14 PM, Rena <hyperhacker@gmail.com> wrote:
I see a lot of Lua scripts beginning with:
#!/usr/bin/env lua

I think this is done to avoid hard coding the path to the lua interpreter; the location of "env" is more predictable than the location of lua, and allows the script to locate the lua interpreter using the current path.