diff options
| author | Jacob McDonnell <jacob@jacobmcdonnell.com> | 2026-04-26 16:38:00 -0400 |
|---|---|---|
| committer | Jacob McDonnell <jacob@jacobmcdonnell.com> | 2026-04-26 16:38:00 -0400 |
| commit | 97d5c458cfa039d857301e1ca7d5af3beb37131d (patch) | |
| tree | b460cd850d0537eb71806ba30358840377b27688 /static/unix-v10/man1/gets.1 | |
| parent | b89dc2331a50c63f8b33272a5c4c61ab98abdaa3 (diff) | |
build: Better Build System
Diffstat (limited to 'static/unix-v10/man1/gets.1')
| -rw-r--r-- | static/unix-v10/man1/gets.1 | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/static/unix-v10/man1/gets.1 b/static/unix-v10/man1/gets.1 new file mode 100644 index 00000000..66fddb86 --- /dev/null +++ b/static/unix-v10/man1/gets.1 @@ -0,0 +1,55 @@ +.TH GETS 1 deprecated +.UC 4 +.SH NAME +gets \- get a string from standard input +.SH SYNOPSIS +.B gets +[ default ] +.SH DESCRIPTION +.B N.B.: +This command was introduced for use in \fI.login\fR scripts when the facilities +of the +.IR tset (1) +command were not totally adequate in setting the terminal type. +This is no longer true, and +.I gets +should no longer be needed. +To boot, a construct ``$<'' is available in +.IR csh (1) +now which has the functionality of +.IR gets: +.IP +\fBset a=$<\fR +.br +\fBif ($a == '') set a=default +.LP +replaces +.IP +\fBset a=`gets default`\fR +.LP +Users of +.IR sh (1) +should use its +.I read +command rather than +.I gets. +.PP +.I Gets +can be used with +.IR csh (1) +to read a string from the standard input. +If a +.I 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 +.I default +is given and an error occurs, +.I gets +exits with exit status 1. +.SH "SEE ALSO" +csh (1) +.SH BUGS +.I Gets +is obsolete. |
