diff options
| author | jet2tlf <jet2tlf@gmail.com> | 2024-05-31 03:22:01 +0000 |
|---|---|---|
| committer | jet2tlf <jet2tlf@gmail.com> | 2024-05-31 03:22:01 +0000 |
| commit | 4f68d64bea5f57eb7fd433c9f3a8c97b28fc1097 (patch) | |
| tree | e15030b2da8fbc2bb4ac9613bef889007f2b91fe /cmd/myshell | |
| parent | 5f49f08043849b9d2b2b14d492fb56f139277581 (diff) | |
| download | shell-go-4f68d64bea5f57eb7fd433c9f3a8c97b28fc1097.tar.gz shell-go-4f68d64bea5f57eb7fd433c9f3a8c97b28fc1097.zip | |
pass 5st stage
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]) |