Issue #11608 has been reported by Kazuhiro NISHIYAMA.

----------------------------------------
Bug #11608: test -t without fd
https://bugs.ruby-lang.org/issues/11608

* Author: Kazuhiro NISHIYAMA
* Status: Open
* Priority: Normal
* Assignee: 
* ruby -v: 
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
----------------------------------------
r52202 で fd 指定なしの test -t を使っていますが、
http://pubs.opengroup.org/onlinepubs/9699919799/utilities/test.html
の RATIONALE で

> The -t file_descriptor primary is shown with a mandatory argument because the grammar is ambiguous if it can be omitted. Historical implementations have allowed it to be omitted, providing a default of 1.

と書かれているように省略せずに指定すべきではないでしょうか。



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