From 36ea20b550ed12036085e72c6828a11b608b8581 Mon Sep 17 00:00:00 2001 From: sammyette <38820196+TorchedSammy@users.noreply.github.com> Date: Sat, 12 Jun 2021 11:52:56 -0400 Subject: [PATCH] fix: aliases in sh interp exec handler --- shell.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shell.go b/shell.go index c5a5b7e..b133161 100644 --- a/shell.go +++ b/shell.go @@ -121,7 +121,8 @@ func execCommand(cmd string) error { if aliases[args[0]] != "" { alias := aliases[args[0]] argstring = alias + strings.TrimPrefix(argstring, args[0]) - args[0] = alias + cmdArgs, _ := splitInput(argstring) + args = cmdArgs } // If command is defined in Lua then run it