aboutsummaryrefslogtreecommitdiff
path: root/cmd/myshell/main.go
diff options
context:
space:
mode:
authorjet2tlf <jet2tlf@gmail.com>2024-05-31 04:55:32 +0000
committerjet2tlf <jet2tlf@gmail.com>2024-05-31 04:55:32 +0000
commit10072d3ecae5bb9c5935d033b1278666c9b80cf8 (patch)
treead40aefb566e4b9b9410397d3e8ea07eaaea2b1d /cmd/myshell/main.go
parent7110baf5dd384ad92409e05eb627b534e9e35c16 (diff)
downloadshell-go-master.tar.gz
shell-go-master.zip
pass 12st stageHEADmaster
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 40de651..97cf8dc 100644
--- a/cmd/myshell/main.go
+++ b/cmd/myshell/main.go
@@ -64,7 +64,7 @@ func Cd(dir string) {
if dir == "~" {
home, _ := os.UserHomeDir()
- p = home + dir
+ p = home + "/"
}
err := os.Chdir(p)