freebsd-dev/bin/ls
Colin Percival 310924af3d Fixes to output of ls -lh for certain file sizes:
1. Sizes in the range 1000 -- 1023 units require four characters width
   for the integer; increase the field width to accomodate this.
2. Sizes in the range 9.95 -- 10 units were being displayed as "10.0"
   units; adjust the logic to fix this, and now that we've got an extra
   character of field width, print fractional units if the size is less
   than 99.95 units.
3. Don't display sub-byte precision.

This should mean that the following sizes are displayed:
    0B .. 1023B
  1.0U ..  9.9U
 10.0U .. 99.9U
  100U .. 1023U
for values of U in "KMGTPE".

PR:		bin/63547
Pointy hat to:	cperciva
Approved by:	rwatson (mentor)
2004-03-01 19:25:27 +00:00
..
cmp.c Consistently use __FBSDID 2002-06-30 05:13:54 +00:00
extern.h Fix a bazillion warnings. This makes almost the whole of src/bin/* 2003-05-03 16:39:34 +00:00
ls.1 Do something sensible if both -h and -k are given. 2003-12-01 19:10:29 +00:00
ls.c Do something sensible if both -h and -k are given. 2003-12-01 19:10:29 +00:00
ls.h Teach "ls -Z" to use the policy-agnostic MAC label interfaces rather 2002-10-24 00:07:30 +00:00
Makefile Get this area compiling with the highest WARNS= that it works with. 2003-06-13 07:04:02 +00:00
print.c Fixes to output of ls -lh for certain file sizes: 2004-03-01 19:25:27 +00:00
util.c Add the -m, -w and -x options to ls's usage message. 2003-09-09 12:02:52 +00:00