Importing usr.bin/tty
Replaces commands/tty. No Minix-specific changes needed. Change-Id: I7ed8589a8cfb0f4fedab6eb760e321876db73502
This commit is contained in:
+1
-1
@@ -19,7 +19,7 @@ MAN= ash.1 at.1 \
|
||||
stty.1 svc.1 svrctl.1 \
|
||||
synctree.1 sysenv.1 sz.1 tail.1 telnet.1 template.1 \
|
||||
term.1 termcap.1 tget.1 time.1 true.1 \
|
||||
truncate.1 tty.1 umount.1 uname.1 \
|
||||
truncate.1 umount.1 uname.1 \
|
||||
uud.1 uue.1 vol.1 whereis.1 which.1 \
|
||||
yap.1 linkfarm.1 pkg_view.1
|
||||
|
||||
|
||||
@@ -1,30 +0,0 @@
|
||||
.TH TTY 1
|
||||
.SH NAME
|
||||
tty \- print the device name of this tty
|
||||
.SH SYNOPSIS
|
||||
\fBtty \fR[\fB\-s\fR]\fR
|
||||
.br
|
||||
.de FL
|
||||
.TP
|
||||
\\fB\\$1\\fR
|
||||
\\$2
|
||||
..
|
||||
.de EX
|
||||
.TP 20
|
||||
\\fB\\$1\\fR
|
||||
# \\$2
|
||||
..
|
||||
.SH OPTIONS
|
||||
.TP 5
|
||||
.B \-s
|
||||
# Silent mode, only the exit status is affected.
|
||||
.SH EXAMPLES
|
||||
.TP 20
|
||||
.B tty
|
||||
# Print the tty name
|
||||
.SH DESCRIPTION
|
||||
.PP
|
||||
Print the name of the controlling tty. If the flag \fB\-s\fR is given,
|
||||
\fItty\fR is equivalent to the call \fBtest \-t 0\fR.
|
||||
.SH "SEE ALSO"
|
||||
.BR ttyname (3).
|
||||
Reference in New Issue
Block a user