lua-users home
lua-l archive

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


Just something I put together for fun:

#!/bin/bash
_= # --[[
echo This is bash script
lua $0
exit
]] _G
print "And this is Lua."

--verify that Bash doesn't choke on the Lua syntax here.
for i = 1, 2 do print(i) end
while false do print [[ critical logic failure! ]] os.exit(0) end

A Bash script that's also a Lua script!

-- 
Sent from my Game Boy.