aboutsummaryrefslogtreecommitdiff
path: root/cmd/myshell
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/myshell')
-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 a220cda..7e8a9a0 100644
--- a/cmd/myshell/main.go
+++ b/cmd/myshell/main.go
@@ -17,7 +17,7 @@ func main() {
fmt.Println(err.Error())
}
- if in == "exit 0" {
+ if in == "exit 0\n" {
os.Exit(0)
} else {
fmt.Printf("%s: command not found\n", strings.TrimRight(in, "\n"))