{"action":"created","issue":{"url":"https://api.github.com/repos/ouijan/rabbit/issues/5","repository_url":"https://api.github.com/repos/ouijan/rabbit","labels_url":"https://api.github.com/repos/ouijan/rabbit/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/ouijan/rabbit/issues/5/comments","events_url":"https://api.github.com/repos/ouijan/rabbit/issues/5/events","html_url":"https://github.com/ouijan/rabbit/issues/5","id":118615354,"number":5,"title":"running cd","user":{"login":"ouijan","id":8247931,"avatar_url":"https://avatars.githubusercontent.com/u/8247931?v=3","gravatar_id":"","url":"https://api.github.com/users/ouijan","html_url":"https://github.com/ouijan","followers_url":"https://api.github.com/users/ouijan/followers","following_url":"https://api.github.com/users/ouijan/following{/other_user}","gists_url":"https://api.github.com/users/ouijan/gists{/gist_id}","starred_url":"https://api.github.com/users/ouijan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ouijan/subscriptions","organizations_url":"https://api.github.com/users/ouijan/orgs","repos_url":"https://api.github.com/users/ouijan/repos","events_url":"https://api.github.com/users/ouijan/events{/privacy}","received_events_url":"https://api.github.com/users/ouijan/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ouijan/rabbit/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-24T14:04:20Z","updated_at":"2016-04-07T03:01:20Z","closed_at":null,"body":"When changing directory, after the shell command exits it leaves the python in the same directory. Meaning commands featuring cd will not work."},"comment":{"url":"https://api.github.com/repos/ouijan/rabbit/issues/comments/206673117","html_url":"https://github.com/ouijan/rabbit/issues/5#issuecomment-206673117","issue_url":"https://api.github.com/repos/ouijan/rabbit/issues/5","id":206673117,"user":{"login":"ouijan","id":8247931,"avatar_url":"https://avatars.githubusercontent.com/u/8247931?v=3","gravatar_id":"","url":"https://api.github.com/users/ouijan","html_url":"https://github.com/ouijan","followers_url":"https://api.github.com/users/ouijan/followers","following_url":"https://api.github.com/users/ouijan/following{/other_user}","gists_url":"https://api.github.com/users/ouijan/gists{/gist_id}","starred_url":"https://api.github.com/users/ouijan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ouijan/subscriptions","organizations_url":"https://api.github.com/users/ouijan/orgs","repos_url":"https://api.github.com/users/ouijan/repos","events_url":"https://api.github.com/users/ouijan/events{/privacy}","received_events_url":"https://api.github.com/users/ouijan/received_events","type":"User","site_admin":false},"created_at":"2016-04-07T03:01:20Z","updated_at":"2016-04-07T03:01:20Z","body":"I believe this is to do with the way the command is being executed. When the command causes a directory change and exits the directory of the shell used to run 'rabbit' is unchanged. \r\n\r\nNeed to find a way of capturing the last working directory before the command exits and change the current shell's directory."}}