Project

General

Profile

Bug #11608

test -t without fd

Added by znz (Kazuhiro NISHIYAMA) over 4 years ago. Updated over 4 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.

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

Updated by znz (Kazuhiro NISHIYAMA) over 4 years ago

  • Assignee set to nobu (Nobuyoshi Nakada)
  • ruby -v set to r52202
#2

Updated by nobu (Nobuyoshi Nakada) over 4 years ago

  • Status changed from Open to Closed

Applied in changeset r52204.


test -t

  • aclocal.m4, tool/ifchange: make the fd explict. [ruby-dev:49311] [Bug #11608]

Also available in: Atom PDF