Project

General

Profile

Actions

Bug #11608

closed

test -t without fd

Added by znz (Kazuhiro NISHIYAMA) over 8 years ago. Updated over 8 years ago.

Status:
Closed
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 8 years ago

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

Updated by nobu (Nobuyoshi Nakada) over 8 years ago

  • Status changed from Open to Closed

Applied in changeset r52204.


test -t

Actions

Also available in: Atom PDF

Like0
Like0Like0