[ruby-core:75251] [Ruby trunk Bug#12312][Closed] Make PTY take environment variables like popen does

From: nobu@...
Date: 2016-04-29 13:49:28 UTC
List: ruby-core #75251
Issue #12312 has been updated by Nobuyoshi Nakada.

Status changed from Open to Closed
Backport changed from 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN to 2.1: DONTNEED, 2.2: DONTNEED, 2.3: DONTNEED

It works already.

```
$ ruby1.9 -v -rpty -e 'PTY.spawn({"FOO"=>"bar"}, "printenv", "FOO") {|r,w,pid|p r.read}'
ruby 1.9.3p551 (2014-11-13 revision 48407) [universal.x86_64-darwin15.3.0]
"bar\r\n"
```

----------------------------------------
Bug #12312: Make PTY take environment variables like popen does
https://bugs.ruby-lang.org/issues/12312#change-58381

* Author: Michael Grosser
* Status: Closed
* Priority: Normal
* Assignee: 
* ruby -v: 
* Backport: 2.1: DONTNEED, 2.2: DONTNEED, 2.3: DONTNEED
----------------------------------------
Need a PTY that also takes environment variables ... hacking around it with script (which works differently on OSX and Unix) is ugly ...



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next