From 200fe1054f0c866a69cd40ed7d275f5b3046f043 Mon Sep 17 00:00:00 2001 From: TorchedSammy <38820196+TorchedSammy@users.noreply.github.com> Date: Wed, 11 May 2022 21:13:29 -0400 Subject: [PATCH] fix: pass user input to runner function instead of expanded alias --- exec.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exec.go b/exec.go index 9d394aa..826dc7f 100644 --- a/exec.go +++ b/exec.go @@ -113,7 +113,7 @@ func runInput(input string, priv bool) { } else { // can only be a string or function so term := rt.NewTerminationWith(l.MainThread().CurrentCont(), 3, false) - err = rt.Call(l.MainThread(), runnerMode, []rt.Value{rt.StringValue(cmdString)}, term) + err = rt.Call(l.MainThread(), runnerMode, []rt.Value{rt.StringValue(input)}, term) if err != nil { fmt.Fprintln(os.Stderr, err) cmdFinish(124, input, priv)