Deleted Added
full compact
tty.1 (50477) tty.1 (95124)
1.\" Copyright (c) 1990, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" This code is derived from software contributed to Berkeley by
5.\" the Institute of Electrical and Electronics Engineers, Inc.
6.\"
7.\" Redistribution and use in source and binary forms, with or without
8.\" modification, are permitted provided that the following conditions

--- 19 unchanged lines hidden (view full) ---

28.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33.\" SUCH DAMAGE.
34.\"
35.\" @(#)tty.1 8.1 (Berkeley) 6/6/93
1.\" Copyright (c) 1990, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" This code is derived from software contributed to Berkeley by
5.\" the Institute of Electrical and Electronics Engineers, Inc.
6.\"
7.\" Redistribution and use in source and binary forms, with or without
8.\" modification, are permitted provided that the following conditions

--- 19 unchanged lines hidden (view full) ---

28.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33.\" SUCH DAMAGE.
34.\"
35.\" @(#)tty.1 8.1 (Berkeley) 6/6/93
36.\" $FreeBSD: head/usr.bin/tty/tty.1 50477 1999-08-28 01:08:13Z peter $
36.\" $FreeBSD: head/usr.bin/tty/tty.1 95124 2002-04-20 12:18:28Z charnier $
37.\"
38.Dd June 6, 1993
39.Dt TTY 1
40.Os
41.Sh NAME
42.Nm tty
43.Nd return user's terminal name
44.Sh SYNOPSIS

--- 15 unchanged lines hidden (view full) ---

60when this option is specified.
61The
62.Fl s
63option is deprecated in favor of the
64.Dq Li "test -t 0"
65command.
66.El
67.Pp
37.\"
38.Dd June 6, 1993
39.Dt TTY 1
40.Os
41.Sh NAME
42.Nm tty
43.Nd return user's terminal name
44.Sh SYNOPSIS

--- 15 unchanged lines hidden (view full) ---

60when this option is specified.
61The
62.Fl s
63option is deprecated in favor of the
64.Dq Li "test -t 0"
65command.
66.El
67.Pp
68.Nm Tty
68The
69.Nm
70utility
69exits 0 if the standard input is a terminal, 1 if the standard input is
70not a terminal, and >1 if an error occurs.
71.Sh SEE ALSO
72.Xr test 1 ,
73.Xr ttyname 3
74.Sh STANDARDS
75The
76.Nm
77utility is expected to be
78.St -p1003.2
79compatible.
80.Sh HISTORY
81A
82.Nm
83command appeared in
84.At v1 .
71exits 0 if the standard input is a terminal, 1 if the standard input is
72not a terminal, and >1 if an error occurs.
73.Sh SEE ALSO
74.Xr test 1 ,
75.Xr ttyname 3
76.Sh STANDARDS
77The
78.Nm
79utility is expected to be
80.St -p1003.2
81compatible.
82.Sh HISTORY
83A
84.Nm
85command appeared in
86.At v1 .