lua-users home
lua-l archive

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


> Am I missing a trick somewhere?

You can use a combined Shell/Lua script header to achieve almost(?) anything.

#!/bin/bash
A=--[[
echo "here Shell code"
exec lua "$0" "$@"
#]]A
print "here Lua code"

- Jörg