lua-users home
lua-l archive

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


2015-12-21 10:37 GMT+02:00 Richter, Jörg <Joerg.Richter@pdv-fs.de>:
>> 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"

Ah. That certainly qualifies as a trick, and I missed it. Thanks!