aboutsummaryrefslogtreecommitdiff
path: root/cmd/myshell/main.go
diff options
context:
space:
mode:
authorjet2tlf <jet2tlf@gmail.com>2024-05-30 02:18:58 +0000
committerjet2tlf <jet2tlf@gmail.com>2024-05-30 02:18:58 +0000
commit4a9731f352df928fba1e0701397259002f0caf43 (patch)
treeebfe96e45365fbc6292468e22ccf175ae5b2fe3c /cmd/myshell/main.go
parent95e9600399363fa694579795d5aa668e9073b224 (diff)
downloadshell-go-4a9731f352df928fba1e0701397259002f0caf43.tar.gz
shell-go-4a9731f352df928fba1e0701397259002f0caf43.zip
pass 4st stage
Diffstat (limited to 'cmd/myshell/main.go')
-rw-r--r--cmd/myshell/main.go2
1 files changed, 1 insertions, 1 deletions
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"))