From: zn@... Date: 2015-10-20T13:31:29+00:00 Subject: [ruby-dev:49310] [Ruby trunk - Bug #11608] test -t without fd Issue #11608 has been updated by Kazuhiro NISHIYAMA. Assignee set to Nobuyoshi Nakada ruby -v set to r52202 ---------------------------------------- Bug #11608: test -t without fd https://bugs.ruby-lang.org/issues/11608#change-54495 * Author: Kazuhiro NISHIYAMA * Status: Open * Priority: Normal * Assignee: Nobuyoshi Nakada * ruby -v: r52202 * 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/