{"action":"opened","number":49,"pull_request":{"url":"https://api.github.com/repos/kasper/phoenix/pulls/49","id":51457701,"html_url":"https://github.com/kasper/phoenix/pull/49","diff_url":"https://github.com/kasper/phoenix/pull/49.diff","patch_url":"https://github.com/kasper/phoenix/pull/49.patch","issue_url":"https://api.github.com/repos/kasper/phoenix/issues/49","number":49,"state":"open","locked":false,"title":"Get user shell from NSProcessInfo environment","user":{"login":"jasonm23","id":71587,"avatar_url":"https://avatars.githubusercontent.com/u/71587?v=3","gravatar_id":"","url":"https://api.github.com/users/jasonm23","html_url":"https://github.com/jasonm23","followers_url":"https://api.github.com/users/jasonm23/followers","following_url":"https://api.github.com/users/jasonm23/following{/other_user}","gists_url":"https://api.github.com/users/jasonm23/gists{/gist_id}","starred_url":"https://api.github.com/users/jasonm23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasonm23/subscriptions","organizations_url":"https://api.github.com/users/jasonm23/orgs","repos_url":"https://api.github.com/users/jasonm23/repos","events_url":"https://api.github.com/users/jasonm23/events{/privacy}","received_events_url":"https://api.github.com/users/jasonm23/received_events","type":"User","site_admin":false},"body":"We could apply this to `Command.run(...)` too, I'll take a look.\r\n\r\nI successfully tested this with ZSH as `$SHELL` and this shebang for literate coffee:\r\n\r\n    #!coffee -pl\r\n\r\n","created_at":"2015-11-22T04:58:09Z","updated_at":"2015-11-22T04:58:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/kasper/phoenix/pulls/49/commits","review_comments_url":"https://api.github.com/repos/kasper/phoenix/pulls/49/comments","review_comment_url":"https://api.github.com/repos/kasper/phoenix/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kasper/phoenix/issues/49/comments","statuses_url":"https://api.github.com/repos/kasper/phoenix/statuses/9f7d41a3513c1dd2f5baafc3b3eef056db3cbe9e","head":{"label":"kasper:launch-from-user-shell-for-preprocessor-shebang","ref":"launch-from-user-shell-for-preprocessor-shebang","sha":"9f7d41a3513c1dd2f5baafc3b3eef056db3cbe9e","user":{"login":"kasper","id":925851,"avatar_url":"https://avatars.githubusercontent.com/u/925851?v=3","gravatar_id":"","url":"https://api.github.com/users/kasper","html_url":"https://github.com/kasper","followers_url":"https://api.github.com/users/kasper/followers","following_url":"https://api.github.com/users/kasper/following{/other_user}","gists_url":"https://api.github.com/users/kasper/gists{/gist_id}","starred_url":"https://api.github.com/users/kasper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kasper/subscriptions","organizations_url":"https://api.github.com/users/kasper/orgs","repos_url":"https://api.github.com/users/kasper/repos","events_url":"https://api.github.com/users/kasper/events{/privacy}","received_events_url":"https://api.github.com/users/kasper/received_events","type":"User","site_admin":false},"repo":{"id":21743740,"name":"phoenix","full_name":"kasper/phoenix","owner":{"login":"kasper","id":925851,"avatar_url":"https://avatars.githubusercontent.com/u/925851?v=3","gravatar_id":"","url":"https://api.github.com/users/kasper","html_url":"https://github.com/kasper","followers_url":"https://api.github.com/users/kasper/followers","following_url":"https://api.github.com/users/kasper/following{/other_user}","gists_url":"https://api.github.com/users/kasper/gists{/gist_id}","starred_url":"https://api.github.com/users/kasper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kasper/subscriptions","organizations_url":"https://api.github.com/users/kasper/orgs","repos_url":"https://api.github.com/users/kasper/repos","events_url":"https://api.github.com/users/kasper/events{/privacy}","received_events_url":"https://api.github.com/users/kasper/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kasper/phoenix","description":"A lightweight OS X window and app manager scriptable with JavaScript","fork":false,"url":"https://api.github.com/repos/kasper/phoenix","forks_url":"https://api.github.com/repos/kasper/phoenix/forks","keys_url":"https://api.github.com/repos/kasper/phoenix/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kasper/phoenix/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kasper/phoenix/teams","hooks_url":"https://api.github.com/repos/kasper/phoenix/hooks","issue_events_url":"https://api.github.com/repos/kasper/phoenix/issues/events{/number}","events_url":"https://api.github.com/repos/kasper/phoenix/events","assignees_url":"https://api.github.com/repos/kasper/phoenix/assignees{/user}","branches_url":"https://api.github.com/repos/kasper/phoenix/branches{/branch}","tags_url":"https://api.github.com/repos/kasper/phoenix/tags","blobs_url":"https://api.github.com/repos/kasper/phoenix/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kasper/phoenix/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kasper/phoenix/git/refs{/sha}","trees_url":"https://api.github.com/repos/kasper/phoenix/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kasper/phoenix/statuses/{sha}","languages_url":"https://api.github.com/repos/kasper/phoenix/languages","stargazers_url":"https://api.github.com/repos/kasper/phoenix/stargazers","contributors_url":"https://api.github.com/repos/kasper/phoenix/contributors","subscribers_url":"https://api.github.com/repos/kasper/phoenix/subscribers","subscription_url":"https://api.github.com/repos/kasper/phoenix/subscription","commits_url":"https://api.github.com/repos/kasper/phoenix/commits{/sha}","git_commits_url":"https://api.github.com/repos/kasper/phoenix/git/commits{/sha}","comments_url":"https://api.github.com/repos/kasper/phoenix/comments{/number}","issue_comment_url":"https://api.github.com/repos/kasper/phoenix/issues/comments{/number}","contents_url":"https://api.github.com/repos/kasper/phoenix/contents/{+path}","compare_url":"https://api.github.com/repos/kasper/phoenix/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kasper/phoenix/merges","archive_url":"https://api.github.com/repos/kasper/phoenix/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kasper/phoenix/downloads","issues_url":"https://api.github.com/repos/kasper/phoenix/issues{/number}","pulls_url":"https://api.github.com/repos/kasper/phoenix/pulls{/number}","milestones_url":"https://api.github.com/repos/kasper/phoenix/milestones{/number}","notifications_url":"https://api.github.com/repos/kasper/phoenix/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kasper/phoenix/labels{/name}","releases_url":"https://api.github.com/repos/kasper/phoenix/releases{/id}","created_at":"2014-07-11T16:40:48Z","updated_at":"2015-11-21T14:11:08Z","pushed_at":"2015-11-22T04:55:24Z","git_url":"git://github.com/kasper/phoenix.git","ssh_url":"git@github.com:kasper/phoenix.git","clone_url":"https://github.com/kasper/phoenix.git","svn_url":"https://github.com/kasper/phoenix","homepage":"","size":2203,"stargazers_count":205,"watchers_count":205,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":16,"mirror_url":null,"open_issues_count":5,"forks":16,"open_issues":5,"watchers":205,"default_branch":"master"}},"base":{"label":"kasper:2.0","ref":"2.0","sha":"5773d052f91017e2442c5a95bed8d0af573a793b","user":{"login":"kasper","id":925851,"avatar_url":"https://avatars.githubusercontent.com/u/925851?v=3","gravatar_id":"","url":"https://api.github.com/users/kasper","html_url":"https://github.com/kasper","followers_url":"https://api.github.com/users/kasper/followers","following_url":"https://api.github.com/users/kasper/following{/other_user}","gists_url":"https://api.github.com/users/kasper/gists{/gist_id}","starred_url":"https://api.github.com/users/kasper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kasper/subscriptions","organizations_url":"https://api.github.com/users/kasper/orgs","repos_url":"https://api.github.com/users/kasper/repos","events_url":"https://api.github.com/users/kasper/events{/privacy}","received_events_url":"https://api.github.com/users/kasper/received_events","type":"User","site_admin":false},"repo":{"id":21743740,"name":"phoenix","full_name":"kasper/phoenix","owner":{"login":"kasper","id":925851,"avatar_url":"https://avatars.githubusercontent.com/u/925851?v=3","gravatar_id":"","url":"https://api.github.com/users/kasper","html_url":"https://github.com/kasper","followers_url":"https://api.github.com/users/kasper/followers","following_url":"https://api.github.com/users/kasper/following{/other_user}","gists_url":"https://api.github.com/users/kasper/gists{/gist_id}","starred_url":"https://api.github.com/users/kasper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kasper/subscriptions","organizations_url":"https://api.github.com/users/kasper/orgs","repos_url":"https://api.github.com/users/kasper/repos","events_url":"https://api.github.com/users/kasper/events{/privacy}","received_events_url":"https://api.github.com/users/kasper/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kasper/phoenix","description":"A lightweight OS X window and app manager scriptable with JavaScript","fork":false,"url":"https://api.github.com/repos/kasper/phoenix","forks_url":"https://api.github.com/repos/kasper/phoenix/forks","keys_url":"https://api.github.com/repos/kasper/phoenix/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kasper/phoenix/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kasper/phoenix/teams","hooks_url":"https://api.github.com/repos/kasper/phoenix/hooks","issue_events_url":"https://api.github.com/repos/kasper/phoenix/issues/events{/number}","events_url":"https://api.github.com/repos/kasper/phoenix/events","assignees_url":"https://api.github.com/repos/kasper/phoenix/assignees{/user}","branches_url":"https://api.github.com/repos/kasper/phoenix/branches{/branch}","tags_url":"https://api.github.com/repos/kasper/phoenix/tags","blobs_url":"https://api.github.com/repos/kasper/phoenix/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kasper/phoenix/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kasper/phoenix/git/refs{/sha}","trees_url":"https://api.github.com/repos/kasper/phoenix/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kasper/phoenix/statuses/{sha}","languages_url":"https://api.github.com/repos/kasper/phoenix/languages","stargazers_url":"https://api.github.com/repos/kasper/phoenix/stargazers","contributors_url":"https://api.github.com/repos/kasper/phoenix/contributors","subscribers_url":"https://api.github.com/repos/kasper/phoenix/subscribers","subscription_url":"https://api.github.com/repos/kasper/phoenix/subscription","commits_url":"https://api.github.com/repos/kasper/phoenix/commits{/sha}","git_commits_url":"https://api.github.com/repos/kasper/phoenix/git/commits{/sha}","comments_url":"https://api.github.com/repos/kasper/phoenix/comments{/number}","issue_comment_url":"https://api.github.com/repos/kasper/phoenix/issues/comments{/number}","contents_url":"https://api.github.com/repos/kasper/phoenix/contents/{+path}","compare_url":"https://api.github.com/repos/kasper/phoenix/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kasper/phoenix/merges","archive_url":"https://api.github.com/repos/kasper/phoenix/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kasper/phoenix/downloads","issues_url":"https://api.github.com/repos/kasper/phoenix/issues{/number}","pulls_url":"https://api.github.com/repos/kasper/phoenix/pulls{/number}","milestones_url":"https://api.github.com/repos/kasper/phoenix/milestones{/number}","notifications_url":"https://api.github.com/repos/kasper/phoenix/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kasper/phoenix/labels{/name}","releases_url":"https://api.github.com/repos/kasper/phoenix/releases{/id}","created_at":"2014-07-11T16:40:48Z","updated_at":"2015-11-21T14:11:08Z","pushed_at":"2015-11-22T04:55:24Z","git_url":"git://github.com/kasper/phoenix.git","ssh_url":"git@github.com:kasper/phoenix.git","clone_url":"https://github.com/kasper/phoenix.git","svn_url":"https://github.com/kasper/phoenix","homepage":"","size":2203,"stargazers_count":205,"watchers_count":205,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":16,"mirror_url":null,"open_issues_count":5,"forks":16,"open_issues":5,"watchers":205,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kasper/phoenix/pulls/49"},"html":{"href":"https://github.com/kasper/phoenix/pull/49"},"issue":{"href":"https://api.github.com/repos/kasper/phoenix/issues/49"},"comments":{"href":"https://api.github.com/repos/kasper/phoenix/issues/49/comments"},"review_comments":{"href":"https://api.github.com/repos/kasper/phoenix/pulls/49/comments"},"review_comment":{"href":"https://api.github.com/repos/kasper/phoenix/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kasper/phoenix/pulls/49/commits"},"statuses":{"href":"https://api.github.com/repos/kasper/phoenix/statuses/9f7d41a3513c1dd2f5baafc3b3eef056db3cbe9e"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":5,"deletions":1,"changed_files":1}}