{"action":"opened","issue":{"url":"https://api.github.com/repos/Prince-linux/prince-linux-learning/issues/24","labels_url":"https://api.github.com/repos/Prince-linux/prince-linux-learning/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/Prince-linux/prince-linux-learning/issues/24/comments","events_url":"https://api.github.com/repos/Prince-linux/prince-linux-learning/issues/24/events","html_url":"https://github.com/Prince-linux/prince-linux-learning/issues/24","id":91800572,"number":24,"title":"Discover the $? special variable","user":{"login":"lcabrini","id":98929,"avatar_url":"https://avatars.githubusercontent.com/u/98929?v=3","gravatar_id":"","url":"https://api.github.com/users/lcabrini","html_url":"https://github.com/lcabrini","followers_url":"https://api.github.com/users/lcabrini/followers","following_url":"https://api.github.com/users/lcabrini/following{/other_user}","gists_url":"https://api.github.com/users/lcabrini/gists{/gist_id}","starred_url":"https://api.github.com/users/lcabrini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lcabrini/subscriptions","organizations_url":"https://api.github.com/users/lcabrini/orgs","repos_url":"https://api.github.com/users/lcabrini/repos","events_url":"https://api.github.com/users/lcabrini/events{/privacy}","received_events_url":"https://api.github.com/users/lcabrini/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-29T13:15:53Z","updated_at":"2015-06-29T13:15:53Z","closed_at":null,"body":"Try the following sequence:\r\n\r\n    $ ls\r\n    $ echo $?\r\n    $ zxvrft\r\n    $ echo $?\r\n    $ ls /doesnotexist\r\n    $ echo $?\r\n    $ mkdir /foo\r\n    $ echo $?\r\n    $ echo hello\r\n    $ echo $?\r\n    $ ping 127.0.0.1\r\n    $ echo $?\r\n    $ ping foo.bar.bim\r\n    $ echo $?\r\n\r\nPay careful attention to the value of the output of echo $? in each case. On the Shell Variables wiki page (create it if you have to), create a heading called return value and document your findings.\r\n"}}