Project

General

Profile

Actions

Bug #11608

closed

test -t without fd

Added by znz (Kazuhiro NISHIYAMA) almost 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Target version:
-
[ruby-dev:49311]

Description

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.

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

Actions

Also available in: Atom PDF