[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Customized interpreter
- From: Dirk Laurie <dirk.laurie@...>
- Date: Mon, 21 Dec 2015 10:51:44 +0200
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!