aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorjet2tlf <jet2tlf@gmail.com>2024-05-31 03:22:01 +0000
committerjet2tlf <jet2tlf@gmail.com>2024-05-31 03:22:01 +0000
commit4f68d64bea5f57eb7fd433c9f3a8c97b28fc1097 (patch)
treee15030b2da8fbc2bb4ac9613bef889007f2b91fe /cmd
parent5f49f08043849b9d2b2b14d492fb56f139277581 (diff)
downloadshell-go-4f68d64bea5f57eb7fd433c9f3a8c97b28fc1097.tar.gz
shell-go-4f68d64bea5f57eb7fd433c9f3a8c97b28fc1097.zip
pass 5st stage
Diffstat (limited to 'cmd')
-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])