From 71c7459bfb801a053a2e9e79c21ae8d080a6d742 Mon Sep 17 00:00:00 2001 From: Thadeu de Paula Date: Tue, 1 Aug 2023 10:23:12 -0300 Subject: [PATCH] Adds Lua string --- sheets/_lua/hello | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sheets/_lua/hello b/sheets/_lua/hello index 614763d..100f099 100644 --- a/sheets/_lua/hello +++ b/sheets/_lua/hello @@ -8,4 +8,10 @@ -- to execute: -- lua hello.lua -io.write("Hello world, from ",_VERSION,"!\n") +-- The simplest way: +print('Hello world', 'from', _VERSION) + +-- On the stdout or stderr +io.stdout:write("Hello world, from ",_VERSION,"!\n") +io.stderr:write("Hello world, from ",_VERSION,"!\n") +