Annotation of researchv10dc/man/manb/gets.1, revision 1.1

1.1     ! root        1: .TH GETS 1 deprecated
        !             2: .UC 4
        !             3: .SH NAME
        !             4: gets \- get a string from standard input
        !             5: .SH SYNOPSIS
        !             6: .B gets
        !             7: [ default ]
        !             8: .SH DESCRIPTION
        !             9: .B N.B.:
        !            10: This command was introduced for use in \fI.login\fR scripts when the facilities
        !            11: of the 
        !            12: .IR tset (1)
        !            13: command were not totally adequate in setting the terminal type.
        !            14: This is no longer true, and
        !            15: .I gets
        !            16: should no longer be needed.
        !            17: To boot, a construct ``$<'' is available in
        !            18: .IR csh (1)
        !            19: now which has the functionality of
        !            20: .IR gets:
        !            21: .IP
        !            22: \fBset a=$<\fR
        !            23: .br
        !            24: \fBif ($a == '') set a=default
        !            25: .LP
        !            26: replaces
        !            27: .IP
        !            28: \fBset a=`gets default`\fR
        !            29: .LP
        !            30: Users of
        !            31: .IR sh (1)
        !            32: should use its
        !            33: .I read
        !            34: command rather than
        !            35: .I gets.
        !            36: .PP
        !            37: .I Gets
        !            38: can be used with
        !            39: .IR csh (1)
        !            40: to read a string from the standard input.
        !            41: If a
        !            42: .I default
        !            43: is given it is used if just return is typed, or if an error occurs.
        !            44: The resultant string (either the default or as read from the standard
        !            45: input is written to the standard output.
        !            46: If no
        !            47: .I default
        !            48: is given and an error occurs,
        !            49: .I gets
        !            50: exits with exit status 1.
        !            51: .SH "SEE ALSO"
        !            52: csh (1)
        !            53: .SH BUGS
        !            54: .I Gets
        !            55: is obsolete.

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.