< :前の番号
^ :番号順リスト
> :次の番号
P :前の記事(スレッド移動)
N :次の記事(スレッド移動)
|<:前のスレッド
>|:次のスレッド
^ :返事先
_:自分への返事
>:同じ返事先を持つ記事(前)
<:同じ返事先を持つ記事(後)
---:分割してスレッド表示、再表示
| :分割して(縦)スレッド表示、再表示
~ :スレッドのフレーム消去
.:インデックス
..:インデックスのインデックス
Issue #17094 has been updated by nobu (Nobuyoshi Nakada).
As it can be incompatible only when passing a lambda, I don't think it is a serious problem.
----------------------------------------
Bug #17094: PTY methods with blocks
https://bugs.ruby-lang.org/issues/17094#change-86862
* Author: soutaro (Soutaro Matsumoto)
* Status: Open
* Priority: Normal
* Backport: 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN
----------------------------------------
Some methods on PTY yields one array if a block is given, but the RDoc says it passes two arguments to the block.
https://github.com/ruby/ruby/blob/master/ext/pty/pty.c#L529
``` c
return rb_ensure(rb_yield, assoc, pty_close_pty, assoc);
```
https://github.com/ruby/ruby/blob/master/ext/pty/pty.c#L467
```
* PTY.open {|master_io, slave_file| ... } => block value
```
I'd like to propose to fix the implementation. However, it would make more sense to fix the docs because of potential incompatibilities.
--
https://bugs.ruby-lang.org/