[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: RE: Using Lua to replace C
- From: Richter, Jörg <Joerg.Richter@...>
- Date: Fri, 25 Feb 2011 16:54:33 +0000
> I can work around this with an extra
> level of script, but it means that I can't easily start Zile from a
> hash-bang script.
I often solve problems like this with a combined lua/sh script:
A=--[[ LUA_INIT= LUA_PATH= LUA_CPATH= exec lua "$0" "$@" # -*- mode: lua; -*- ]]A
print( "hello world" )
Note the /bin/sh in the shebang line.
And with -*- mode: lua; -*- even emacs gets it right.