{"action":"created","issue":{"url":"https://api.github.com/repos/sstephenson/rbenv/issues/372","labels_url":"https://api.github.com/repos/sstephenson/rbenv/issues/372/labels{/name}","comments_url":"https://api.github.com/repos/sstephenson/rbenv/issues/372/comments","events_url":"https://api.github.com/repos/sstephenson/rbenv/issues/372/events","html_url":"https://github.com/sstephenson/rbenv/pull/372","id":12650380,"number":372,"title":"Change `exec` semantics to allow using rbenv from a ruby process","user":{"login":"mislav","id":887,"avatar_url":"https://avatars.githubusercontent.com/u/887?v=3","gravatar_id":"","url":"https://api.github.com/users/mislav","html_url":"https://github.com/mislav","followers_url":"https://api.github.com/users/mislav/followers","following_url":"https://api.github.com/users/mislav/following{/other_user}","gists_url":"https://api.github.com/users/mislav/gists{/gist_id}","starred_url":"https://api.github.com/users/mislav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mislav/subscriptions","organizations_url":"https://api.github.com/users/mislav/orgs","repos_url":"https://api.github.com/users/mislav/repos","events_url":"https://api.github.com/users/mislav/events{/privacy}","received_events_url":"https://api.github.com/users/mislav/received_events","type":"User","site_admin":true},"labels":[{"url":"https://api.github.com/repos/sstephenson/rbenv/labels/feature","name":"feature","color":"02e10c"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/sstephenson/rbenv/milestones/3","labels_url":"https://api.github.com/repos/sstephenson/rbenv/milestones/3/labels","id":446891,"number":3,"title":"1.0","description":"","creator":{"login":"mislav","id":887,"avatar_url":"https://avatars.githubusercontent.com/u/887?v=3","gravatar_id":"","url":"https://api.github.com/users/mislav","html_url":"https://github.com/mislav","followers_url":"https://api.github.com/users/mislav/followers","following_url":"https://api.github.com/users/mislav/following{/other_user}","gists_url":"https://api.github.com/users/mislav/gists{/gist_id}","starred_url":"https://api.github.com/users/mislav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mislav/subscriptions","organizations_url":"https://api.github.com/users/mislav/orgs","repos_url":"https://api.github.com/users/mislav/repos","events_url":"https://api.github.com/users/mislav/events{/privacy}","received_events_url":"https://api.github.com/users/mislav/received_events","type":"User","site_admin":true},"open_issues":0,"closed_issues":8,"state":"open","created_at":"2013-10-07T00:46:19Z","updated_at":"2014-10-19T12:51:45Z","due_on":null,"closed_at":null},"comments":19,"created_at":"2013-04-01T01:54:53Z","updated_at":"2015-01-07T19:35:41Z","closed_at":"2013-10-30T01:53:33Z","pull_request":{"url":"https://api.github.com/repos/sstephenson/rbenv/pulls/372","html_url":"https://github.com/sstephenson/rbenv/pull/372","diff_url":"https://github.com/sstephenson/rbenv/pull/372.diff","patch_url":"https://github.com/sstephenson/rbenv/pull/372.patch"},"body":"The most common pitfall with rbenv is that you can't shell out to another rbenv version from a ruby process started with rbenv. #121\r\n\r\nThis is an unfortunate side-effect of a PATH-modifying hack to allow support for `ruby -S`. #14\r\n\r\nHere I propose that we stop modifying PATH during `rbenv-exec` unless we're actually dealing with `ruby -S`.\r\n\r\nThe drawback of this change is that you still can't shell out to another rbenv version from a process started with `ruby -S`. An alternative solution to this change would be to re-implement the `ruby -S` semantics and execute it without ever needing to change PATH."},"comment":{"url":"https://api.github.com/repos/sstephenson/rbenv/issues/comments/69078073","html_url":"https://github.com/sstephenson/rbenv/pull/372#issuecomment-69078073","issue_url":"https://api.github.com/repos/sstephenson/rbenv/issues/372","id":69078073,"user":{"login":"grosser","id":11367,"avatar_url":"https://avatars.githubusercontent.com/u/11367?v=3","gravatar_id":"","url":"https://api.github.com/users/grosser","html_url":"https://github.com/grosser","followers_url":"https://api.github.com/users/grosser/followers","following_url":"https://api.github.com/users/grosser/following{/other_user}","gists_url":"https://api.github.com/users/grosser/gists{/gist_id}","starred_url":"https://api.github.com/users/grosser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grosser/subscriptions","organizations_url":"https://api.github.com/users/grosser/orgs","repos_url":"https://api.github.com/users/grosser/repos","events_url":"https://api.github.com/users/grosser/events{/privacy}","received_events_url":"https://api.github.com/users/grosser/received_events","type":"User","site_admin":false},"created_at":"2015-01-07T19:35:41Z","updated_at":"2015-01-07T19:35:41Z","body":"can we reopen this issue plz ... ran into it again :("}}