diff options
| author | jet2tlf <jet2tlf@gmail.com> | 2024-05-30 02:18:58 +0000 |
|---|---|---|
| committer | jet2tlf <jet2tlf@gmail.com> | 2024-05-30 02:18:58 +0000 |
| commit | 4a9731f352df928fba1e0701397259002f0caf43 (patch) | |
| tree | ebfe96e45365fbc6292468e22ccf175ae5b2fe3c /cmd/myshell/main.go | |
| parent | 95e9600399363fa694579795d5aa668e9073b224 (diff) | |
| download | shell-go-4a9731f352df928fba1e0701397259002f0caf43.tar.gz shell-go-4a9731f352df928fba1e0701397259002f0caf43.zip | |
pass 4st stage
Diffstat (limited to 'cmd/myshell/main.go')
| -rw-r--r-- | cmd/myshell/main.go | 2 |
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")) |