> 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