aboutsummaryrefslogtreecommitdiff
path: root/cmd/myshell/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/myshell/main.go')
-rw-r--r--cmd/myshell/main.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/cmd/myshell/main.go b/cmd/myshell/main.go
index ee725a2..84f1b23 100644
--- a/cmd/myshell/main.go
+++ b/cmd/myshell/main.go
@@ -29,13 +29,10 @@ func main() {
fmt.Println(err.Error())
}
os.Exit(code)
- return
case "echo":
- fmt.Println(os.Stdout, "%s\n", strings.Join(commands[1:], " "))
- return
+ fmt.Printf("%s\n", strings.Join(commands[1:], " "))
default:
fmt.Printf("%s: command not found\n", commands[0])
- return
}
}
}