sbase

suckless unix tools
git clone git://git.2f30.org/sbase
Log | Files | Refs | README | LICENSE

commit bc0de5e7e541a6fc45774ac3a03248c2a533f9cf
parent f34e1ae1d0b2bb95290425a3e0292937b47e4de5
Author: sin <sin@2f39.org>
Date:   Wed, 12 Mar 2014 16:43:45 +0200

Rename mc(1) to cols(1)

There is an obvious name collision with the popular file manager
midnight commander.

Diffstat:
MMakefile | 2+-
Acols.1 | 35+++++++++++++++++++++++++++++++++++
Rmc.c -> cols.c | 0
Dmc.1 | 35-----------------------------------
4 files changed, 36 insertions(+), 36 deletions(-)

diff --git a/Makefile b/Makefile @@ -36,6 +36,7 @@ SRC = \ chroot.c \ cksum.c \ cmp.c \ + cols.c \ comm.c \ cp.c \ cut.c \ @@ -53,7 +54,6 @@ SRC = \ kill.c \ ln.c \ ls.c \ - mc.c \ md5sum.c \ mkdir.c \ mkfifo.c \ diff --git a/cols.1 b/cols.1 @@ -0,0 +1,35 @@ +.TH COLS 1 sbase\-VERSION +.SH NAME +cols \- columnize output +.SH SYNOPSIS +.B cols +.RB [ \-c +.IR chars ] +.RI [ file ...] +.SH DESCRIPTION +.B cols +reads each file in sequence and writes them to stdout, +in as many vertical columns as will fit in +.I chars +character columns. +If no file is given, cols reads from stdin. +.SH OPTIONS +.TP +.BI \-c " chars" +specifies the maximum number of character columns to use +(unless the input contains lines longer than +.I chars +characters). By default cols tries to figure out the width +of the output device, if that fails it defaults to 65 +chars. +.SH BUGS +This implementation of +.B cols +assumes that every byte is a character +which takes up one column on the screen. +It does not handle non-ASCII UTF-8 runes +or TAB characters correctly. +.B cols +currently mangles files which contain embedded NULs. +.B cols +does not allow the user to set a default width in its environment. diff --git a/mc.c b/cols.c diff --git a/mc.1 b/mc.1 @@ -1,35 +0,0 @@ -.TH MC 1 sbase\-VERSION -.SH NAME -mc \- multi-column -.SH SYNOPSIS -.B mc -.RB [ \-c -.IR chars ] -.RI [ file ...] -.SH DESCRIPTION -.B mc -reads each file in sequence and writes them to stdout, -in as many vertical columns as will fit in -.I chars -character columns. -If no file is given, mc reads from stdin. -.SH OPTIONS -.TP -.BI \-c " chars" -specifies the maximum number of character columns to use -(unless the input contains lines longer than -.I chars -characters). By default mc tries to figure out the width -of the output device, if that fails it defaults to 65 -chars. -.SH BUGS -This implementation of -.B mc -assumes that every byte is a character -which takes up one column on the screen. -It does not handle non-ASCII UTF-8 runes -or TAB characters correctly. -.B mc -currently mangles files which contain embedded NULs. -.B mc -does not allow the user to set a default width in its environment.