{"action":"created","issue":{"url":"https://api.github.com/repos/oracle/truffleruby/issues/1492","repository_url":"https://api.github.com/repos/oracle/truffleruby","labels_url":"https://api.github.com/repos/oracle/truffleruby/issues/1492/labels{/name}","comments_url":"https://api.github.com/repos/oracle/truffleruby/issues/1492/comments","events_url":"https://api.github.com/repos/oracle/truffleruby/issues/1492/events","html_url":"https://github.com/oracle/truffleruby/issues/1492","id":386039867,"node_id":"MDU6SXNzdWUzODYwMzk4Njc=","number":1492,"title":"Support :chdir in #spawn","user":{"login":"MaxLap","id":894561,"node_id":"MDQ6VXNlcjg5NDU2MQ==","avatar_url":"https://avatars0.githubusercontent.com/u/894561?v=4","gravatar_id":"","url":"https://api.github.com/users/MaxLap","html_url":"https://github.com/MaxLap","followers_url":"https://api.github.com/users/MaxLap/followers","following_url":"https://api.github.com/users/MaxLap/following{/other_user}","gists_url":"https://api.github.com/users/MaxLap/gists{/gist_id}","starred_url":"https://api.github.com/users/MaxLap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaxLap/subscriptions","organizations_url":"https://api.github.com/users/MaxLap/orgs","repos_url":"https://api.github.com/users/MaxLap/repos","events_url":"https://api.github.com/users/MaxLap/events{/privacy}","received_events_url":"https://api.github.com/users/MaxLap/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-11-30T05:08:09Z","updated_at":"2018-11-30T14:39:59Z","closed_at":null,"author_association":"NONE","body":"Right now, `spawn('echo hi', chdir: '/home')` is plain refused in TruffleRuby.\r\n\r\ntruffleruby 1.0.0-rc9, like ruby 2.4.4, GraalVM CE Native [x86_64-linux]"},"comment":{"url":"https://api.github.com/repos/oracle/truffleruby/issues/comments/443223155","html_url":"https://github.com/oracle/truffleruby/issues/1492#issuecomment-443223155","issue_url":"https://api.github.com/repos/oracle/truffleruby/issues/1492","id":443223155,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MzIyMzE1NQ==","user":{"login":"MaxLap","id":894561,"node_id":"MDQ6VXNlcjg5NDU2MQ==","avatar_url":"https://avatars0.githubusercontent.com/u/894561?v=4","gravatar_id":"","url":"https://api.github.com/users/MaxLap","html_url":"https://github.com/MaxLap","followers_url":"https://api.github.com/users/MaxLap/followers","following_url":"https://api.github.com/users/MaxLap/following{/other_user}","gists_url":"https://api.github.com/users/MaxLap/gists{/gist_id}","starred_url":"https://api.github.com/users/MaxLap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaxLap/subscriptions","organizations_url":"https://api.github.com/users/MaxLap/orgs","repos_url":"https://api.github.com/users/MaxLap/repos","events_url":"https://api.github.com/users/MaxLap/events{/privacy}","received_events_url":"https://api.github.com/users/MaxLap/received_events","type":"User","site_admin":false},"created_at":"2018-11-30T14:39:59Z","updated_at":"2018-11-30T14:39:59Z","author_association":"NONE","body":"I understand, I just didn't see any mention of it in the doc so I thought I'd report it. It's not obvious that not supporting fork means no :chdir.\r\n\r\nI wish I could help, but other than providing a random workaround that you guys probably already thought of and discarded, I got nothing. (Can't you `#spawn` a binary/non-ruby script which receives the information, does the chdir, and then`exec` the real target?)"}}
{"actor":{"display_login":"MaxLap"}}