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