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.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/myshell/main.go b/cmd/myshell/main.go
index d44fb99..ee725a2 100644
--- a/cmd/myshell/main.go
+++ b/cmd/myshell/main.go
@@ -31,7 +31,7 @@ func main() {
os.Exit(code)
return
case "echo":
- fmt.Printf("%s\n", strings.Join(commands[1:], " "))
+ fmt.Println(os.Stdout, "%s\n", strings.Join(commands[1:], " "))
return
default:
fmt.Printf("%s: command not found\n", commands[0])