2BSD/man/gets.u

.TH GETS UCB 2/24/79 UCB
.SH NAME
gets \- get a string from standard input
.SH SYNOPSIS
.B gets
[ default ]
.SH DESCRIPTION
.I Gets
can be used with
.IR csh (UCB)
to read a string from the standard input.
If a
.I default
is given it is used if an error occurs.
The resultant string (either the default or as read from the standard
input is written to the standard output.
If no
.I default
is given and an error occurs,
.I gets
exits with exit status 1.
.SH "SEE ALSO"
csh (UCB)
.SH BUGS