GETS(1)

NAME
gets - get a string from standard input

SYNOPSIS
gets [ default ]

DESCRIPTION
Gets can be used with csh(1) to read a string from the standard input. If a default 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. If no default is given and an error occurs, gets exits with exit status 1.

EXAMPLES
Using csh:
    echo setenv TERM \\c
    setenv TERM `gets adm3a`
Using sh:
    echo -n TERM=
    TERM=`gets adm3a`
    export TERM

SEE ALSO
csh (1)

BUGS