[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: test -t FD vs. [FD]
From: |
Paul Jarc |
Subject: |
Re: test -t FD vs. [FD] |
Date: |
Wed, 18 Jun 2003 18:04:09 -0400 |
User-agent: |
Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux) |
Dan Jacobson <address@hidden> wrote:
> Paul> With a single argument, test only tells you whether that arguments is
> Paul> empty. You want "test -t 0" (or 1 or 2).
>
> $ man test
> -t [FD]
> file descriptor FD (stdout by default) is opened on a terminal
> I.e. argument optional
Making it optional is historical, but violates SUSv3. (test --help
and test --version also violate SUSv3.)
paul