{"action":"created","issue":{"url":"https://api.github.com/repos/larcenists/larceny/issues/722","labels_url":"https://api.github.com/repos/larcenists/larceny/issues/722/labels{/name}","comments_url":"https://api.github.com/repos/larcenists/larceny/issues/722/comments","events_url":"https://api.github.com/repos/larcenists/larceny/issues/722/events","html_url":"https://github.com/larcenists/larceny/issues/722","id":70338033,"number":722,"title":"exit ignores argument","user":{"login":"ashinn","id":5121092,"avatar_url":"https://avatars.githubusercontent.com/u/5121092?v=3","gravatar_id":"","url":"https://api.github.com/users/ashinn","html_url":"https://github.com/ashinn","followers_url":"https://api.github.com/users/ashinn/followers","following_url":"https://api.github.com/users/ashinn/following{/other_user}","gists_url":"https://api.github.com/users/ashinn/gists{/gist_id}","starred_url":"https://api.github.com/users/ashinn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashinn/subscriptions","organizations_url":"https://api.github.com/users/ashinn/orgs","repos_url":"https://api.github.com/users/ashinn/repos","events_url":"https://api.github.com/users/ashinn/events{/privacy}","received_events_url":"https://api.github.com/users/ashinn/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/larcenists/larceny/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/larcenists/larceny/labels/C:%20LIBRARY","name":"C: LIBRARY","color":"0000aa"},{"url":"https://api.github.com/repos/larcenists/larceny/labels/P:%20major","name":"P: major","color":"aa8888"},{"url":"https://api.github.com/repos/larcenists/larceny/labels/R:%20fixed","name":"R: fixed","color":"55ff55"},{"url":"https://api.github.com/repos/larcenists/larceny/labels/T:%20correctness","name":"T: correctness","color":"cccccc"}],"state":"closed","locked":false,"assignee":{"login":"WillClinger","id":4834511,"avatar_url":"https://avatars.githubusercontent.com/u/4834511?v=3","gravatar_id":"","url":"https://api.github.com/users/WillClinger","html_url":"https://github.com/WillClinger","followers_url":"https://api.github.com/users/WillClinger/followers","following_url":"https://api.github.com/users/WillClinger/following{/other_user}","gists_url":"https://api.github.com/users/WillClinger/gists{/gist_id}","starred_url":"https://api.github.com/users/WillClinger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WillClinger/subscriptions","organizations_url":"https://api.github.com/users/WillClinger/orgs","repos_url":"https://api.github.com/users/WillClinger/repos","events_url":"https://api.github.com/users/WillClinger/events{/privacy}","received_events_url":"https://api.github.com/users/WillClinger/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/larcenists/larceny/milestones/8","html_url":"https://github.com/larcenists/larceny/milestones/Larceny%200.99","labels_url":"https://api.github.com/repos/larcenists/larceny/milestones/8/labels","id":388662,"number":8,"title":"Larceny 0.99","description":"None","creator":{"login":"larceny-trac-import","id":4951000,"avatar_url":"https://avatars.githubusercontent.com/u/4951000?v=3","gravatar_id":"","url":"https://api.github.com/users/larceny-trac-import","html_url":"https://github.com/larceny-trac-import","followers_url":"https://api.github.com/users/larceny-trac-import/followers","following_url":"https://api.github.com/users/larceny-trac-import/following{/other_user}","gists_url":"https://api.github.com/users/larceny-trac-import/gists{/gist_id}","starred_url":"https://api.github.com/users/larceny-trac-import/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/larceny-trac-import/subscriptions","organizations_url":"https://api.github.com/users/larceny-trac-import/orgs","repos_url":"https://api.github.com/users/larceny-trac-import/repos","events_url":"https://api.github.com/users/larceny-trac-import/events{/privacy}","received_events_url":"https://api.github.com/users/larceny-trac-import/received_events","type":"User","site_admin":false},"open_issues":21,"closed_issues":10,"state":"open","created_at":"2013-07-28T09:28:52Z","updated_at":"2015-04-23T16:32:12Z","due_on":"2015-07-31T04:00:00Z","closed_at":null},"comments":1,"created_at":"2015-04-23T07:46:11Z","updated_at":"2015-04-23T16:32:12Z","closed_at":"2015-04-23T16:32:12Z","body":"According to R7RS section 6.14 (exit #f) should terminate and return an exit value indicating failure to the operating system.  However, on OS X I get the following:\r\n\r\n```bash\r\n$ cat exit.scm \r\n(import (scheme process-context))\r\n(exit #f)\r\n$ larceny -r7rs -program exit.scm \r\n$ echo $?\r\n0\r\n```\r\n\r\nWhen obj is a non-boolean exit should also try to return that value to the OS, e.g. returning integers in *nix or strings in Plan9.  Replacing #f with, e.g. 42 in the above program also results in a zero exit status."},"comment":{"url":"https://api.github.com/repos/larcenists/larceny/issues/comments/95645579","html_url":"https://github.com/larcenists/larceny/issues/722#issuecomment-95645579","issue_url":"https://api.github.com/repos/larcenists/larceny/issues/722","id":95645579,"user":{"login":"WillClinger","id":4834511,"avatar_url":"https://avatars.githubusercontent.com/u/4834511?v=3","gravatar_id":"","url":"https://api.github.com/users/WillClinger","html_url":"https://github.com/WillClinger","followers_url":"https://api.github.com/users/WillClinger/followers","following_url":"https://api.github.com/users/WillClinger/following{/other_user}","gists_url":"https://api.github.com/users/WillClinger/gists{/gist_id}","starred_url":"https://api.github.com/users/WillClinger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WillClinger/subscriptions","organizations_url":"https://api.github.com/users/WillClinger/orgs","repos_url":"https://api.github.com/users/WillClinger/repos","events_url":"https://api.github.com/users/WillClinger/events{/privacy}","received_events_url":"https://api.github.com/users/WillClinger/received_events","type":"User","site_admin":false},"created_at":"2015-04-23T16:32:12Z","updated_at":"2015-04-23T16:32:12Z","body":"Fixed by changeset 27fb63113e3d9e6ed31a688b09ea9e36821a53cc\r\n\r\nThis bug was introduced 27 January 2015 when changeset 9c9fe3fd18319df7b5dbc2f49b42080075c97ba6 implemented `emergency-exit`.  Today's changes added testing of the exit status to Larceny's R7RS test suite."}}