diff options
Diffstat (limited to 'cmd/myshell')
| -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 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]) |