BSD 3 development
authorBill Joy <wnj@ucbvax.Berkeley.EDU>
Sun, 25 Nov 1979 09:09:02 +0000 (01:09 -0800)
committerBill Joy <wnj@ucbvax.Berkeley.EDU>
Sun, 25 Nov 1979 09:09:02 +0000 (01:09 -0800)
Work on file usr/man/man1/fold.1
Work on file usr/man/man1/gets.1

Synthesized-from: 3bsd

usr/man/man1/fold.1 [new file with mode: 0644]
usr/man/man1/gets.1 [new file with mode: 0644]

diff --git a/usr/man/man1/fold.1 b/usr/man/man1/fold.1
new file mode 100644 (file)
index 0000000..e8a4672
--- /dev/null
@@ -0,0 +1,30 @@
+.TH FOLD 1 2/24/79
+.UC
+.SH NAME
+fold \- fold long lines for finite width output device
+.SH SYNOPSIS
+.B fold
+[
+\-width
+] [
+file ...
+]
+.SH DESCRIPTION
+.I Fold
+is a filter which will fold the contents of the specified files,
+or the standard input if no files are specified,
+breaking the lines to have maximum width
+.I width.
+The default for
+.I width
+is 80.
+.I Width
+should be a multiple of 8 if tabs are present, or the tabs should
+be expanded using
+.IR expand (1)
+before coming to
+.I fold.
+.SH SEE\ ALSO
+expand(1)
+.SH BUGS
+If underlining is present it may be messed up by folding.
diff --git a/usr/man/man1/gets.1 b/usr/man/man1/gets.1
new file mode 100644 (file)
index 0000000..eade4c0
--- /dev/null
@@ -0,0 +1,36 @@
+.TH GETS 1 10/11/79
+.UC
+.SH NAME
+gets \- get a string from standard input
+.SH SYNOPSIS
+.B gets
+[ default ]
+.SH DESCRIPTION
+.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 EXAMPLES
+Using csh:
+.br
+    echo setenv TERM \e\ec
+    setenv TERM `gets adm3a`
+.br
+Using sh:
+.br
+    echo \-n TERM=
+    TERM=`gets adm3a`
+    export TERM
+.SH "SEE ALSO"
+csh (1)
+.SH BUGS