SVR2.2 "ls" bug

M.RUBIN rubin at mtuxn.UUCP
Fri Jul 26 07:34:05 AEST 1985


Bug found on a 3B2 running System V release 2.2 (I don't have any other
SVR2.2 machines to compare with):

When using any of the multi-column modes of "ls" (e.g. -x or -C), the column
spacing is normally (length of longest filename in listing + 2).  However,
if any of the filenames being listed are the maximum length for a filename
(14 chars), the column spacing suddenly becomes 44 chars.  On an 80-char-wide
terminal this means a one-column listing.

Probable cause: there are two different constants for maximum widths of
things, and the programmer used the wrong one someplace.  I don't have
source to fix it.



More information about the Net.bugs.usg mailing list