{"action":"opened","issue":{"url":"https://api.github.com/repos/scopatz/xonsh/issues/1107","repository_url":"https://api.github.com/repos/scopatz/xonsh","labels_url":"https://api.github.com/repos/scopatz/xonsh/issues/1107/labels{/name}","comments_url":"https://api.github.com/repos/scopatz/xonsh/issues/1107/comments","events_url":"https://api.github.com/repos/scopatz/xonsh/issues/1107/events","html_url":"https://github.com/scopatz/xonsh/issues/1107","id":158538615,"number":1107,"title":"`cd ..` doesn't work well when directory which is deleted","user":{"login":"yangchenyun","id":1043403,"avatar_url":"https://avatars.githubusercontent.com/u/1043403?v=3","gravatar_id":"","url":"https://api.github.com/users/yangchenyun","html_url":"https://github.com/yangchenyun","followers_url":"https://api.github.com/users/yangchenyun/followers","following_url":"https://api.github.com/users/yangchenyun/following{/other_user}","gists_url":"https://api.github.com/users/yangchenyun/gists{/gist_id}","starred_url":"https://api.github.com/users/yangchenyun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yangchenyun/subscriptions","organizations_url":"https://api.github.com/users/yangchenyun/orgs","repos_url":"https://api.github.com/users/yangchenyun/repos","events_url":"https://api.github.com/users/yangchenyun/events{/privacy}","received_events_url":"https://api.github.com/users/yangchenyun/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-05T05:31:58Z","updated_at":"2016-06-05T05:31:58Z","closed_at":null,"body":"```bash\r\ncd /tmp\r\nmkdir -p foo/bar and cd foo/bar\r\nrm -rf /tmp/foo\r\ncd ..\r\nFileNotFoundError: [Errno 2] No such file or directory\r\n```\r\n\r\nPossible solution:\r\nin `fish-shell`, when `rm` is executed, it clears the directory stack.\r\nin `bash`, `cd ..` still moves up but raise an error until a valid parent directory is found. \r\n\r\n<img width=\"783\" alt=\"screen shot 2016-06-04 at 10 31 03 pm\" src=\"https://cloud.githubusercontent.com/assets/1043403/15803788/0d234fb0-2aa4-11e6-8957-0f69bf4cd102.png\">\r\n"}}
{"actor":{"display_login":"yangchenyun"}}