[comp.sys.mips] wc output bug

bin@primate.wisc.edu (Brain in Neutral) (08/11/89)

wc doesn't put a space between fields 2 and 3 of its output (this is true
for both /bin/wc and /usr/ucb/wc, since the latter is a symlink to the former)
if the file size is large, e.g.,
	% wc /usr/lib/news/history
gives me
	37023 1280431854334
whereas it would be nice to get
	37023 128043 1844334

This is on a M/120, running RISC/os 4.0.  Installing 4.01 does not seem to
affect /bin/wc, so I guess the problem persists into 4.01.

The fix is easy:  ftp to uunet.uu.net, cd into ~ftp/bsd-sources/src/ucb,
grab wc.c and install it on top of /bin/wc.  It doesn't have the bug (it
has a space in the printf, as it should).

Paul DuBois
dubois@primate.wisc.edu