From 9d2f8bbece1fea5cc2b3db7abe8d395e1d1d2f9e Mon Sep 17 00:00:00 2001 From: Kyle Gunger Date: Sat, 9 Apr 2022 15:00:53 -0400 Subject: [EXEC] Hotfix for reading from files --- src/texec/eval.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/texec') diff --git a/src/texec/eval.go b/src/texec/eval.go index 4d4785d..2ac6eab 100644 --- a/src/texec/eval.go +++ b/src/texec/eval.go @@ -628,7 +628,7 @@ func resolveStructCall(a TArtifact, method string, params []TVariable) TVariable a.Name = method tres := tnslResolve(a) - if a.Name == "close" { + if a.Name == "close" || a.Name == "read" { params = append(params, null) } -- cgit v1.2.3