Annotation of 43BSDReno/old/gets/gets.1, revision 1.1

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

unix.superglobalmegacorp.com

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