diff options
| author | jet2tlf <jet2tlf@gmail.com> | 2024-05-31 04:45:51 +0000 |
|---|---|---|
| committer | jet2tlf <jet2tlf@gmail.com> | 2024-05-31 04:45:51 +0000 |
| commit | 8d059b91e05fbcc67973a84170b35592d5534902 (patch) | |
| tree | 3fffe574f7a55fa32028a5e13b935e6862728a51 /cmd/myshell | |
| parent | b2e27e73547a2a2bc26f24b5b61592d9582a5098 (diff) | |
| download | shell-go-8d059b91e05fbcc67973a84170b35592d5534902.tar.gz shell-go-8d059b91e05fbcc67973a84170b35592d5534902.zip | |
pass 10st stage
Diffstat (limited to 'cmd/myshell')
| -rw-r--r-- | cmd/myshell/main.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd/myshell/main.go b/cmd/myshell/main.go index 19242e9..5327248 100644 --- a/cmd/myshell/main.go +++ b/cmd/myshell/main.go @@ -32,6 +32,8 @@ func main() { Type(command[1]) case "pwd": Pwd() + case "cd": + Cd(command[1]) default: executable := exec.Command(command[0], command[1:]...) executable.Stderr = os.Stderr |