diff options
| author | jet2tlf <jet2tlf@gmail.com> | 2024-05-31 04:55:32 +0000 |
|---|---|---|
| committer | jet2tlf <jet2tlf@gmail.com> | 2024-05-31 04:55:32 +0000 |
| commit | 10072d3ecae5bb9c5935d033b1278666c9b80cf8 (patch) | |
| tree | ad40aefb566e4b9b9410397d3e8ea07eaaea2b1d /cmd/myshell | |
| parent | 7110baf5dd384ad92409e05eb627b534e9e35c16 (diff) | |
| download | shell-go-master.tar.gz shell-go-master.zip | |
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 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) |