.\" Copyright (c) 1980 Regents of the University of California.
.\" All rights reserved. The Berkeley software License Agreement
.\" specifies the terms and conditions for redistribution.
.\" @(#)gets.1 4.1 (Berkeley) %G%
gets \- get a string from standard input
This command was introduced for use in \fI.login\fR scripts when the facilities
command were not totally adequate in setting the terminal type.
This is no longer true, and
should no longer be needed.
To boot, a construct ``$<'' is available in
now which has the functionality of
\fBif ($a == '') set a=default
\fBset a=`gets default`\fR
to read a string from the standard input.
is given it is used if just return is typed, or if an error occurs.
The resultant string (either the default or as read from the standard
input is written to the standard output.
is given and an error occurs,
exits with exit status 1.