aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/col
diff options
context:
space:
mode:
authorPaul Saab <ps@FreeBSD.org>2000-07-02 09:34:27 +0000
committerPaul Saab <ps@FreeBSD.org>2000-07-02 09:34:27 +0000
commit1528962d13a64930e5dc526abad55d9c1456749c (patch)
treefdd8c2372a1d5011384d04373a764233f607f262 /usr.bin/col
parentf2bcc562999328041548919873df6ce4b2e70ea9 (diff)
Notes
Diffstat (limited to 'usr.bin/col')
-rw-r--r--usr.bin/col/col.18
-rw-r--r--usr.bin/col/col.c16
2 files changed, 12 insertions, 12 deletions
diff --git a/usr.bin/col/col.1 b/usr.bin/col/col.1
index afd9c2778526..45da8f2d9280 100644
--- a/usr.bin/col/col.1
+++ b/usr.bin/col/col.1
@@ -59,7 +59,7 @@ and
reads from the standard input and writes to the standard output.
.Pp
The options are as follows:
-.Bl -tag -width "-l num "
+.Bl -tag -width indent
.It Fl b
Do not output any backspaces, printing only the last character
written to each column position.
@@ -77,7 +77,7 @@ By default, 128 lines are buffered.
.El
.Pp
The control sequences for carriage motion that
-.Nm col
+.Nm
understands and their decimal values are listed in the following
table:
.Pp
@@ -114,7 +114,7 @@ keeps track of the character set as characters are read and makes
sure the character set is correct when they are output.
.Pp
If the input attempts to back up to the last flushed line,
-.Nm col
+.Nm
will display a warning message.
.Sh SEE ALSO
.Xr expand 1 ,
@@ -122,7 +122,7 @@ will display a warning message.
.Xr tbl 1
.Sh HISTORY
A
-.Nm col
+.Nm
command
appeared in
.At v6 .
diff --git a/usr.bin/col/col.c b/usr.bin/col/col.c
index 8d26faadc0a0..0d78d70b1310 100644
--- a/usr.bin/col/col.c
+++ b/usr.bin/col/col.c
@@ -41,7 +41,11 @@ static const char copyright[] =
#endif /* not lint */
#ifndef lint
-static const char sccsid[] = "@(#)col.c 8.5 (Berkeley) 5/4/95";
+#if 0
+static char sccsid[] = "@(#)col.c 8.5 (Berkeley) 5/4/95";
+#endif
+static const char rcsid[] =
+ "$FreeBSD$";
#endif /* not lint */
#include <ctype.h>
@@ -146,11 +150,8 @@ main(argc, argv)
compress_spaces = 1;
break;
case 'l': /* buffered line count */
- if ((max_bufd_lines = atoi(optarg)) <= 0) {
- (void)fprintf(stderr,
- "col: bad -l argument %s.\n", optarg);
- exit(1);
- }
+ if ((max_bufd_lines = atoi(optarg)) <= 0)
+ errx(1, "bad -l argument %s", optarg);
break;
case 'x': /* do not compress spaces into tabs */
compress_spaces = 0;
@@ -537,8 +538,7 @@ void
wrerr()
{
- (void)fprintf(stderr, "col: write error.\n");
- exit(1);
+ errx(1, "write error");
}
void