From 4a9731f352df928fba1e0701397259002f0caf43 Mon Sep 17 00:00:00 2001 From: jet2tlf Date: Wed, 29 May 2024 23:18:58 -0300 Subject: pass 4st stage --- cmd/myshell/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd') diff --git a/cmd/myshell/main.go b/cmd/myshell/main.go index beac132..cbb2f14 100644 --- a/cmd/myshell/main.go +++ b/cmd/myshell/main.go @@ -21,7 +21,7 @@ func main() { switch in { case commnds[0] == "exit": - os.Exit(commands[1]) + os.Exit(commands[1].ToInt()) } fmt.Printf("%s: command not found\n", strings.TrimRight(in, "\n")) -- cgit v1.2.3