From c198640510c4873ec9112c751ccc0f4956c19153 Mon Sep 17 00:00:00 2001 From: JISAUAY Date: Mon, 30 Jun 2025 13:17:38 -0500 Subject: [PATCH] "added system path execution" --- main.go | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 6a32b3c..6fd923f 100644 --- a/main.go +++ b/main.go @@ -154,7 +154,18 @@ func gosh_process_input(sh *types.Shell, input string) { default: if !check_pathes(sh, parts[0], parts[1:]) { - fmt.Println("Unknown command:", parts[0]) + + comd := exec.Command(parts[0], parts[1:]...) + + out, err := comd.Output() + + if err != nil { + fmt.Print("Error: ") + color.Red(err.Error()) + return + } + + fmt.Println(string(out)) return } }