bug-bash
[Top][All Lists]
Advanced

[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: Mon, 23 Jun 2003 12:27:06 -0400
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux)

Paul Eggert <eggert@CS.UCLA.EDU> wrote:
> POSIX long ago decided that FD is not optional with test -t.  GNU
> 'test' conforms to POSIX in this respect.

bash's does, but coreutils' doesn't.

$ /bin/test -t > /dev/null ; echo $?
1
$ /bin/test --version
test (GNU coreutils) 5.0
Written by FIXME: ksb and mjb.

Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


paul




reply via email to

[Prev in Thread] Current Thread [Next in Thread]