~sircmpwn/ctools

7df889c78cbae33c6ad0e0b68dbf4e081a6b4b2d — Drew DeVault 1 year, 2 months ago 71ac7a3
tty: add man page
2 files changed, 34 insertions(+), 2 deletions(-)

M doc/meson.build
A doc/tty.1.scd
M doc/meson.build => doc/meson.build +3 -2
@@ 6,16 6,17 @@ man_files = [
	'basename.1',
	'cat.1',
	'chgrp.1',
	'chown.1',
	'chmod.1',
	'chown.1',
	'cksum.1',
	'cmp.1',
	'comm.1',
	'false.1',
	'link.1',
	'logname.1',
	'nice.1',
	'false.1',
	'true.1',
	'tty.1',
	'unlink.1',
]


A doc/tty.1.scd => doc/tty.1.scd +31 -0
@@ 0,0 1,31 @@
tty(1) "ctools"

# NAME

tty - print the name of the controlling tty

# SYNOPSIS

*tty*

# DESCRIPTION

*tty* prints the name of the tty associated with this process. If no tty is
associated with this process, "not a tty" is printed instead and the exit
status will be set to 1.

# EXIT STATUS

|] 0
:[ Command completed successfully
|  1
:  _stdout_ is not a tty
|  >1
:  An error occured

# DISCLAIMER

This command is part of ctools and is compatible with POSIX-1.2017, and may
optionally support XSI extensions. This man page is not intended to be a
complete reference, and where it disagrees with the specification, the
specification takes precedence.