diff options
| author | jet2tlf <jet2tlf@gmail.com> | 2024-05-31 04:51:21 +0000 |
|---|---|---|
| committer | jet2tlf <jet2tlf@gmail.com> | 2024-05-31 04:51:21 +0000 |
| commit | 8f0373f4f7b68ddc85dbc493c0b98de91bb56995 (patch) | |
| tree | 119e77e61729d5b0177290774fc26424a2c83d84 /cmd/myshell/main.go | |
| parent | 6eb5e0a690a0311ecdeb245cc16b4b9ad30a124f (diff) | |
| download | shell-go-8f0373f4f7b68ddc85dbc493c0b98de91bb56995.tar.gz shell-go-8f0373f4f7b68ddc85dbc493c0b98de91bb56995.zip | |
pass 12st stage
Diffstat (limited to 'cmd/myshell/main.go')
| -rw-r--r-- | cmd/myshell/main.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/myshell/main.go b/cmd/myshell/main.go index 4609ce7..08db887 100644 --- a/cmd/myshell/main.go +++ b/cmd/myshell/main.go @@ -53,8 +53,8 @@ func Cd(dir string) { p := path.Clean(dir) if !path.IsAbs(p) { - directory, _ := os.Getwd() - p = path.Join(directory, p) + dir, _ := os.Getwd() + p = path.Join(dir, p) } err := os.Chdir(p) |