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