From 2d88c68d712cb90f7e122465381899cd9f578e47 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 5 Jun 2018 16:44:36 -0700 Subject: Fixed piping in file. --- nomsu.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'nomsu.lua') diff --git a/nomsu.lua b/nomsu.lua index 15484d4..bf644c4 100644 --- a/nomsu.lua +++ b/nomsu.lua @@ -1707,7 +1707,9 @@ OPTIONS end end elseif input == STDIN then - nomsu:run(io.input():read("*a"), compile_fn) + local file = io.input():read("*a") + FILE_CACHE.stdin = file + nomsu:run(Nomsu(Source('stdin', 1, #file), file), compile_fn) else nomsu:run_file(input, compile_fn) end -- cgit v1.2.3