2
2
mirror of https://github.com/Hilbis/Hilbish synced 2025-04-02 03:33:22 +00:00

fix: pass user input to runner function instead of expanded alias

This commit is contained in:
TorchedSammy 2022-05-11 21:13:29 -04:00
parent 52a58b14c3
commit 200fe1054f
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD

View File

@ -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)