{"action":"created","issue":{"url":"https://api.github.com/repos/jruby/jruby/issues/3185","labels_url":"https://api.github.com/repos/jruby/jruby/issues/3185/labels{/name}","comments_url":"https://api.github.com/repos/jruby/jruby/issues/3185/comments","events_url":"https://api.github.com/repos/jruby/jruby/issues/3185/events","html_url":"https://github.com/jruby/jruby/issues/3185","id":97204721,"number":3185,"title":"PTY.spawn doesn't pass arguments","user":{"login":"Freaky","id":58758,"avatar_url":"https://avatars.githubusercontent.com/u/58758?v=3","gravatar_id":"","url":"https://api.github.com/users/Freaky","html_url":"https://github.com/Freaky","followers_url":"https://api.github.com/users/Freaky/followers","following_url":"https://api.github.com/users/Freaky/following{/other_user}","gists_url":"https://api.github.com/users/Freaky/gists{/gist_id}","starred_url":"https://api.github.com/users/Freaky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Freaky/subscriptions","organizations_url":"https://api.github.com/users/Freaky/orgs","repos_url":"https://api.github.com/users/Freaky/repos","events_url":"https://api.github.com/users/Freaky/events{/privacy}","received_events_url":"https://api.github.com/users/Freaky/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jruby/jruby/labels/feedback%20needed","name":"feedback needed","color":"f7c6c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-07-25T07:26:01Z","updated_at":"2015-08-05T14:49:45Z","closed_at":null,"body":"    require 'pty'\r\n    r, w, pid = PTY.spawn('/usr/bin/yes', 'nope')\r\n    p r.gets # => \"y\\r\\n\"\r\n\r\nShould return \"nope\\r\\n\"."},"comment":{"url":"https://api.github.com/repos/jruby/jruby/issues/comments/128022895","html_url":"https://github.com/jruby/jruby/issues/3185#issuecomment-128022895","issue_url":"https://api.github.com/repos/jruby/jruby/issues/3185","id":128022895,"user":{"login":"enebo","id":19819,"avatar_url":"https://avatars.githubusercontent.com/u/19819?v=3","gravatar_id":"","url":"https://api.github.com/users/enebo","html_url":"https://github.com/enebo","followers_url":"https://api.github.com/users/enebo/followers","following_url":"https://api.github.com/users/enebo/following{/other_user}","gists_url":"https://api.github.com/users/enebo/gists{/gist_id}","starred_url":"https://api.github.com/users/enebo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enebo/subscriptions","organizations_url":"https://api.github.com/users/enebo/orgs","repos_url":"https://api.github.com/users/enebo/repos","events_url":"https://api.github.com/users/enebo/events{/privacy}","received_events_url":"https://api.github.com/users/enebo/received_events","type":"User","site_admin":false},"created_at":"2015-08-05T14:49:45Z","updated_at":"2015-08-05T14:49:45Z","body":"@Freaky yeah if you want to send a PR then we can give you credit for a partial fix at least?  If you want to work on this more and isolate more wrong behavior...we would love it :)\r\n\r\nThis code in MRI is in C and ours in is Ruby so seeing etc/pty/pty.c in MRI source probably will help in showing what else is wrong with our version.  In glancing at the C source I can see another mistake in that getpty and spawn are aliases so I believe sh logic should not only be in spawn (also handling of SHELL env var)."}}