The gets command
can be used with
csh(C)
to read a string from the standard input.
If
string
is given it is used as a default value if an error occurs.
The resulting string (either
string
or as read from the standard
input) is written to the standard output.
If no
string
is given and an error occurs,
gets
exits with exit status 1.