{"action":"closed","issue":{"url":"https://api.github.com/repos/ghantoos/lshell/issues/119","labels_url":"https://api.github.com/repos/ghantoos/lshell/issues/119/labels{/name}","comments_url":"https://api.github.com/repos/ghantoos/lshell/issues/119/comments","events_url":"https://api.github.com/repos/ghantoos/lshell/issues/119/events","html_url":"https://github.com/ghantoos/lshell/issues/119","id":127502820,"number":119,"title":"exit codes from shell commands","user":{"login":"lmarkov","id":3017169,"avatar_url":"https://avatars.githubusercontent.com/u/3017169?v=3","gravatar_id":"","url":"https://api.github.com/users/lmarkov","html_url":"https://github.com/lmarkov","followers_url":"https://api.github.com/users/lmarkov/followers","following_url":"https://api.github.com/users/lmarkov/following{/other_user}","gists_url":"https://api.github.com/users/lmarkov/gists{/gist_id}","starred_url":"https://api.github.com/users/lmarkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lmarkov/subscriptions","organizations_url":"https://api.github.com/users/lmarkov/orgs","repos_url":"https://api.github.com/users/lmarkov/repos","events_url":"https://api.github.com/users/lmarkov/events{/privacy}","received_events_url":"https://api.github.com/users/lmarkov/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ghantoos/lshell/labels/bug","name":"bug","color":"eb6420"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-19T17:57:47Z","updated_at":"2016-01-31T02:55:00Z","closed_at":"2016-01-31T02:55:00Z","body":"Hello,\r\nCan you tell me how work the exit codes from shell commands? I saw that there is some kind of rewriting but may be I have mistake. \r\n```\r\n :~# alksjdas\r\n -bash: alksjdas: command not found\r\n~# echo $?\r\n127\r\ncd alksjdas\r\n-bash: cd: alksjdas: No such file or directory\r\n:~# echo $?\r\n1\r\n:~# nano test.txt\r\n:~# echo $?\r\n0\r\n```\r\nI want to filter the real shell exit codes but in python I get only 0 or 1 as a result. "}}