aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
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 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)