{"action":"created","issue":{"url":"https://api.github.com/repos/redox-os/redox/issues/601","repository_url":"https://api.github.com/repos/redox-os/redox","labels_url":"https://api.github.com/repos/redox-os/redox/issues/601/labels{/name}","comments_url":"https://api.github.com/repos/redox-os/redox/issues/601/comments","events_url":"https://api.github.com/repos/redox-os/redox/issues/601/events","html_url":"https://github.com/redox-os/redox/pull/601","id":145185496,"number":601,"title":"Add environment variables","user":{"login":"nounoursheureux","id":6280095,"avatar_url":"https://avatars.githubusercontent.com/u/6280095?v=3","gravatar_id":"","url":"https://api.github.com/users/nounoursheureux","html_url":"https://github.com/nounoursheureux","followers_url":"https://api.github.com/users/nounoursheureux/followers","following_url":"https://api.github.com/users/nounoursheureux/following{/other_user}","gists_url":"https://api.github.com/users/nounoursheureux/gists{/gist_id}","starred_url":"https://api.github.com/users/nounoursheureux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nounoursheureux/subscriptions","organizations_url":"https://api.github.com/users/nounoursheureux/orgs","repos_url":"https://api.github.com/users/nounoursheureux/repos","events_url":"https://api.github.com/users/nounoursheureux/events{/privacy}","received_events_url":"https://api.github.com/users/nounoursheureux/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-01T13:49:57Z","updated_at":"2016-04-01T14:02:18Z","closed_at":"2016-04-01T14:02:18Z","pull_request":{"url":"https://api.github.com/repos/redox-os/redox/pulls/601","html_url":"https://github.com/redox-os/redox/pull/601","diff_url":"https://github.com/redox-os/redox/pull/601.diff","patch_url":"https://github.com/redox-os/redox/pull/601.patch"},"body":"**Problem**: Redox doesn't have environment variables. Each process should have its own set of environment variables, that are copied to the child when the process forks.\r\n\r\n**Changes introduced by this pull request**:\r\n\r\n- Add the `env_vars` field to the  `Context` struct\r\n- Add the `env` scheme to access environment variables from userspace\r\n- Add the `env::var`, `env::set_var` and `env::vars` functions to `libstd`\r\n\r\n**TODOs**:\r\n- Add a way to remove environment variables (I'm working on it)\r\n- Maybe add the `export` command to extrautils.\r\n- Set the `HOME`, `PWD`, etc. variables on login\r\n\r\n**State**: Ready"},"comment":{"url":"https://api.github.com/repos/redox-os/redox/issues/comments/204407273","html_url":"https://github.com/redox-os/redox/pull/601#issuecomment-204407273","issue_url":"https://api.github.com/repos/redox-os/redox/issues/601","id":204407273,"user":{"login":"nounoursheureux","id":6280095,"avatar_url":"https://avatars.githubusercontent.com/u/6280095?v=3","gravatar_id":"","url":"https://api.github.com/users/nounoursheureux","html_url":"https://github.com/nounoursheureux","followers_url":"https://api.github.com/users/nounoursheureux/followers","following_url":"https://api.github.com/users/nounoursheureux/following{/other_user}","gists_url":"https://api.github.com/users/nounoursheureux/gists{/gist_id}","starred_url":"https://api.github.com/users/nounoursheureux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nounoursheureux/subscriptions","organizations_url":"https://api.github.com/users/nounoursheureux/orgs","repos_url":"https://api.github.com/users/nounoursheureux/repos","events_url":"https://api.github.com/users/nounoursheureux/events{/privacy}","received_events_url":"https://api.github.com/users/nounoursheureux/received_events","type":"User","site_admin":false},"created_at":"2016-04-01T14:02:18Z","updated_at":"2016-04-01T14:02:18Z","body":"Ooops, I'm going to make another PR against `master`"}}