{"action":"closed","number":1616,"pull_request":{"url":"https://api.github.com/repos/systemd/systemd/pulls/1616","id":48149937,"html_url":"https://github.com/systemd/systemd/pull/1616","diff_url":"https://github.com/systemd/systemd/pull/1616.diff","patch_url":"https://github.com/systemd/systemd/pull/1616.patch","issue_url":"https://api.github.com/repos/systemd/systemd/issues/1616","number":1616,"state":"closed","locked":false,"title":"run: fix Environment parsing","user":{"login":"evverx","id":10195800,"avatar_url":"https://avatars.githubusercontent.com/u/10195800?v=3","gravatar_id":"","url":"https://api.github.com/users/evverx","html_url":"https://github.com/evverx","followers_url":"https://api.github.com/users/evverx/followers","following_url":"https://api.github.com/users/evverx/following{/other_user}","gists_url":"https://api.github.com/users/evverx/gists{/gist_id}","starred_url":"https://api.github.com/users/evverx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evverx/subscriptions","organizations_url":"https://api.github.com/users/evverx/orgs","repos_url":"https://api.github.com/users/evverx/repos","events_url":"https://api.github.com/users/evverx/events{/privacy}","received_events_url":"https://api.github.com/users/evverx/received_events","type":"User","site_admin":false},"body":"* `Environment=` resets previous assignments\r\n* `Environment='a=1 b=2'` sets `a` to `1` and `b` to `2`\r\n* `Environment='\"a=1 2\" b=2'` sets `a` to `1 2` and `b` to `2`\r\n\r\nBugs:\r\n```sh\r\n# systemd-run --remain-after-exit --property Environment= env\r\nFailed to start transient service unit: Invalid environment block.\r\n\r\n# systemd-run --remain-after-exit --property Environment='a=1 b=2' env\r\nRunning as unit run-46.service.\r\n\r\n# journalctl -u run-46 -b -e\r\n-- Logs begin at Tue 2015-10-13 18:33:13 UTC, end at Tue 2015-10-20 02:17:37 UTC. --\r\nOct 20 02:16:25 jessie-64 systemd[1]: Started /usr/bin/env.\r\nOct 20 02:16:25 jessie-64 env[48]: PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin\r\nOct 20 02:16:25 jessie-64 env[48]: a=1 b=2\r\n\r\n# should be\r\n#a=1\r\n#b=2\r\n\r\n# systemd-run --remain-after-exit --property Environment='\"a=1 2\" b=2' env\r\nFailed to start transient service unit: Invalid environment block.\r\n```","created_at":"2015-10-20T02:23:41Z","updated_at":"2015-10-20T13:26:19Z","closed_at":"2015-10-20T13:26:19Z","merged_at":"2015-10-20T13:26:19Z","merge_commit_sha":"82fcb800696c81bef09af6dc0eaedee810b2c820","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/systemd/systemd/pulls/1616/commits","review_comments_url":"https://api.github.com/repos/systemd/systemd/pulls/1616/comments","review_comment_url":"https://api.github.com/repos/systemd/systemd/pulls/comments{/number}","comments_url":"https://api.github.com/repos/systemd/systemd/issues/1616/comments","statuses_url":"https://api.github.com/repos/systemd/systemd/statuses/e9876fc9c5aeec0144c15cd288852ea6c6ac8c29","head":{"label":"evverx:run-fix-environment-parsing","ref":"run-fix-environment-parsing","sha":"e9876fc9c5aeec0144c15cd288852ea6c6ac8c29","user":{"login":"evverx","id":10195800,"avatar_url":"https://avatars.githubusercontent.com/u/10195800?v=3","gravatar_id":"","url":"https://api.github.com/users/evverx","html_url":"https://github.com/evverx","followers_url":"https://api.github.com/users/evverx/followers","following_url":"https://api.github.com/users/evverx/following{/other_user}","gists_url":"https://api.github.com/users/evverx/gists{/gist_id}","starred_url":"https://api.github.com/users/evverx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evverx/subscriptions","organizations_url":"https://api.github.com/users/evverx/orgs","repos_url":"https://api.github.com/users/evverx/repos","events_url":"https://api.github.com/users/evverx/events{/privacy}","received_events_url":"https://api.github.com/users/evverx/received_events","type":"User","site_admin":false},"repo":{"id":40683534,"name":"systemd","full_name":"evverx/systemd","owner":{"login":"evverx","id":10195800,"avatar_url":"https://avatars.githubusercontent.com/u/10195800?v=3","gravatar_id":"","url":"https://api.github.com/users/evverx","html_url":"https://github.com/evverx","followers_url":"https://api.github.com/users/evverx/followers","following_url":"https://api.github.com/users/evverx/following{/other_user}","gists_url":"https://api.github.com/users/evverx/gists{/gist_id}","starred_url":"https://api.github.com/users/evverx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evverx/subscriptions","organizations_url":"https://api.github.com/users/evverx/orgs","repos_url":"https://api.github.com/users/evverx/repos","events_url":"https://api.github.com/users/evverx/events{/privacy}","received_events_url":"https://api.github.com/users/evverx/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/evverx/systemd","description":"systemd upstream","fork":true,"url":"https://api.github.com/repos/evverx/systemd","forks_url":"https://api.github.com/repos/evverx/systemd/forks","keys_url":"https://api.github.com/repos/evverx/systemd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/evverx/systemd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/evverx/systemd/teams","hooks_url":"https://api.github.com/repos/evverx/systemd/hooks","issue_events_url":"https://api.github.com/repos/evverx/systemd/issues/events{/number}","events_url":"https://api.github.com/repos/evverx/systemd/events","assignees_url":"https://api.github.com/repos/evverx/systemd/assignees{/user}","branches_url":"https://api.github.com/repos/evverx/systemd/branches{/branch}","tags_url":"https://api.github.com/repos/evverx/systemd/tags","blobs_url":"https://api.github.com/repos/evverx/systemd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/evverx/systemd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/evverx/systemd/git/refs{/sha}","trees_url":"https://api.github.com/repos/evverx/systemd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/evverx/systemd/statuses/{sha}","languages_url":"https://api.github.com/repos/evverx/systemd/languages","stargazers_url":"https://api.github.com/repos/evverx/systemd/stargazers","contributors_url":"https://api.github.com/repos/evverx/systemd/contributors","subscribers_url":"https://api.github.com/repos/evverx/systemd/subscribers","subscription_url":"https://api.github.com/repos/evverx/systemd/subscription","commits_url":"https://api.github.com/repos/evverx/systemd/commits{/sha}","git_commits_url":"https://api.github.com/repos/evverx/systemd/git/commits{/sha}","comments_url":"https://api.github.com/repos/evverx/systemd/comments{/number}","issue_comment_url":"https://api.github.com/repos/evverx/systemd/issues/comments{/number}","contents_url":"https://api.github.com/repos/evverx/systemd/contents/{+path}","compare_url":"https://api.github.com/repos/evverx/systemd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/evverx/systemd/merges","archive_url":"https://api.github.com/repos/evverx/systemd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/evverx/systemd/downloads","issues_url":"https://api.github.com/repos/evverx/systemd/issues{/number}","pulls_url":"https://api.github.com/repos/evverx/systemd/pulls{/number}","milestones_url":"https://api.github.com/repos/evverx/systemd/milestones{/number}","notifications_url":"https://api.github.com/repos/evverx/systemd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/evverx/systemd/labels{/name}","releases_url":"https://api.github.com/repos/evverx/systemd/releases{/id}","created_at":"2015-08-13T21:54:29Z","updated_at":"2015-08-13T21:54:34Z","pushed_at":"2015-10-20T12:57:00Z","git_url":"git://github.com/evverx/systemd.git","ssh_url":"git@github.com:evverx/systemd.git","clone_url":"https://github.com/evverx/systemd.git","svn_url":"https://github.com/evverx/systemd","homepage":"http://www.freedesktop.org/wiki/Software/systemd/","size":42868,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"systemd:master","ref":"master","sha":"c91960c5a04a3515c43f50a358588f056b8575a6","user":{"login":"systemd","id":1918868,"avatar_url":"https://avatars.githubusercontent.com/u/1918868?v=3","gravatar_id":"","url":"https://api.github.com/users/systemd","html_url":"https://github.com/systemd","followers_url":"https://api.github.com/users/systemd/followers","following_url":"https://api.github.com/users/systemd/following{/other_user}","gists_url":"https://api.github.com/users/systemd/gists{/gist_id}","starred_url":"https://api.github.com/users/systemd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/systemd/subscriptions","organizations_url":"https://api.github.com/users/systemd/orgs","repos_url":"https://api.github.com/users/systemd/repos","events_url":"https://api.github.com/users/systemd/events{/privacy}","received_events_url":"https://api.github.com/users/systemd/received_events","type":"Organization","site_admin":false},"repo":{"id":32873313,"name":"systemd","full_name":"systemd/systemd","owner":{"login":"systemd","id":1918868,"avatar_url":"https://avatars.githubusercontent.com/u/1918868?v=3","gravatar_id":"","url":"https://api.github.com/users/systemd","html_url":"https://github.com/systemd","followers_url":"https://api.github.com/users/systemd/followers","following_url":"https://api.github.com/users/systemd/following{/other_user}","gists_url":"https://api.github.com/users/systemd/gists{/gist_id}","starred_url":"https://api.github.com/users/systemd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/systemd/subscriptions","organizations_url":"https://api.github.com/users/systemd/orgs","repos_url":"https://api.github.com/users/systemd/repos","events_url":"https://api.github.com/users/systemd/events{/privacy}","received_events_url":"https://api.github.com/users/systemd/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/systemd/systemd","description":"systemd upstream","fork":false,"url":"https://api.github.com/repos/systemd/systemd","forks_url":"https://api.github.com/repos/systemd/systemd/forks","keys_url":"https://api.github.com/repos/systemd/systemd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/systemd/systemd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/systemd/systemd/teams","hooks_url":"https://api.github.com/repos/systemd/systemd/hooks","issue_events_url":"https://api.github.com/repos/systemd/systemd/issues/events{/number}","events_url":"https://api.github.com/repos/systemd/systemd/events","assignees_url":"https://api.github.com/repos/systemd/systemd/assignees{/user}","branches_url":"https://api.github.com/repos/systemd/systemd/branches{/branch}","tags_url":"https://api.github.com/repos/systemd/systemd/tags","blobs_url":"https://api.github.com/repos/systemd/systemd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/systemd/systemd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/systemd/systemd/git/refs{/sha}","trees_url":"https://api.github.com/repos/systemd/systemd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/systemd/systemd/statuses/{sha}","languages_url":"https://api.github.com/repos/systemd/systemd/languages","stargazers_url":"https://api.github.com/repos/systemd/systemd/stargazers","contributors_url":"https://api.github.com/repos/systemd/systemd/contributors","subscribers_url":"https://api.github.com/repos/systemd/systemd/subscribers","subscription_url":"https://api.github.com/repos/systemd/systemd/subscription","commits_url":"https://api.github.com/repos/systemd/systemd/commits{/sha}","git_commits_url":"https://api.github.com/repos/systemd/systemd/git/commits{/sha}","comments_url":"https://api.github.com/repos/systemd/systemd/comments{/number}","issue_comment_url":"https://api.github.com/repos/systemd/systemd/issues/comments{/number}","contents_url":"https://api.github.com/repos/systemd/systemd/contents/{+path}","compare_url":"https://api.github.com/repos/systemd/systemd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/systemd/systemd/merges","archive_url":"https://api.github.com/repos/systemd/systemd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/systemd/systemd/downloads","issues_url":"https://api.github.com/repos/systemd/systemd/issues{/number}","pulls_url":"https://api.github.com/repos/systemd/systemd/pulls{/number}","milestones_url":"https://api.github.com/repos/systemd/systemd/milestones{/number}","notifications_url":"https://api.github.com/repos/systemd/systemd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/systemd/systemd/labels{/name}","releases_url":"https://api.github.com/repos/systemd/systemd/releases{/id}","created_at":"2015-03-25T15:27:27Z","updated_at":"2015-10-19T06:09:24Z","pushed_at":"2015-10-20T13:26:19Z","git_url":"git://github.com/systemd/systemd.git","ssh_url":"git@github.com:systemd/systemd.git","clone_url":"https://github.com/systemd/systemd.git","svn_url":"https://github.com/systemd/systemd","homepage":"http://www.freedesktop.org/wiki/Software/systemd/","size":54634,"stargazers_count":635,"watchers_count":635,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":239,"mirror_url":null,"open_issues_count":217,"forks":239,"open_issues":217,"watchers":635,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/systemd/systemd/pulls/1616"},"html":{"href":"https://github.com/systemd/systemd/pull/1616"},"issue":{"href":"https://api.github.com/repos/systemd/systemd/issues/1616"},"comments":{"href":"https://api.github.com/repos/systemd/systemd/issues/1616/comments"},"review_comments":{"href":"https://api.github.com/repos/systemd/systemd/pulls/1616/comments"},"review_comment":{"href":"https://api.github.com/repos/systemd/systemd/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/systemd/systemd/pulls/1616/commits"},"statuses":{"href":"https://api.github.com/repos/systemd/systemd/statuses/e9876fc9c5aeec0144c15cd288852ea6c6ac8c29"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"poettering","id":2130732,"avatar_url":"https://avatars.githubusercontent.com/u/2130732?v=3","gravatar_id":"","url":"https://api.github.com/users/poettering","html_url":"https://github.com/poettering","followers_url":"https://api.github.com/users/poettering/followers","following_url":"https://api.github.com/users/poettering/following{/other_user}","gists_url":"https://api.github.com/users/poettering/gists{/gist_id}","starred_url":"https://api.github.com/users/poettering/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/poettering/subscriptions","organizations_url":"https://api.github.com/users/poettering/orgs","repos_url":"https://api.github.com/users/poettering/repos","events_url":"https://api.github.com/users/poettering/events{/privacy}","received_events_url":"https://api.github.com/users/poettering/received_events","type":"User","site_admin":false},"comments":4,"review_comments":0,"commits":1,"additions":53,"deletions":10,"changed_files":2}}