GETS(1) UNIX Programmer's Manual GETS(1) NAME gets - get a string from standard input SYNOPSIS gets [ default ] DESCRIPTION N.B.: This command was introduced for use in ._l_o_g_i_n scripts when the facilities of the _t_s_e_t(1) command were not totally adequate in setting the terminal type. This is no longer true, and _g_e_t_s should no longer be needed. To boot, a con- struct ``$<'' is available in _c_s_h(1) now which has the func- tionality of _g_e_t_s: set a=$< if ($a == '') set a=default replaces set a=`gets default` Users of _s_h(1) should use its _r_e_a_d command rather than _g_e_t_s. _G_e_t_s can be used with _c_s_h(1) to read a string from the stan- dard input. If a _d_e_f_a_u_l_t 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 _d_e_f_a_u_l_t is given and an error occurs, _g_e_t_s exits with exit status 1. SEE ALSO csh (1) BUGS _G_e_t_s is obsolete. Printed 11/10/80 deprecated 1