-t always requires the fd number as argument, there's no default. With
only one argument -t is equivalent to `test -n -t' and so banally always
true.
diff from Lucas (lucas [at] sexy [dot] is)
ok millert@
-.\" $OpenBSD: test.1,v 1.33 2016/08/16 18:51:25 schwarze Exp $
+.\" $OpenBSD: test.1,v 1.34 2023/06/10 07:19:39 op Exp $
.\" $NetBSD: test.1,v 1.6 1995/03/21 07:04:03 cgd Exp $
.\"
.\" Copyright (c) 1991, 1993
.\"
.\" @(#)test.1 8.1 (Berkeley) 5/31/93
.\"
-.Dd $Mdocdate: August 16 2016 $
+.Dd $Mdocdate: June 10 2023 $
.Dt TEST 1
.Os
.Sh NAME
True if the file whose file descriptor number
is
.Ar file_descriptor
-(default 1) is open and is associated with a terminal.
+is open and is associated with a terminal.
.It Fl u Ar file
True if
.Ar file