[Bug 8731] New: Bad column width in ls

bugzilla at busybox.net bugzilla at busybox.net
Fri Feb 26 16:54:48 UTC 2016


https://bugs.busybox.net/show_bug.cgi?id=8731

            Bug ID: 8731
           Summary: Bad column width in ls
           Product: Busybox
           Version: 1.24.x
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Other
          Assignee: unassigned at busybox.net
          Reporter: allan.snider at nuvyyo.com
                CC: busybox-cvs at busybox.net
  Target Milestone: ---

Created attachment 6366
  --> https://bugs.busybox.net/attachment.cgi?id=6366&action=edit
Correct ls column width

In coreutils/ls.c, 1.19 introduced commit
2f7d9e8903029b1b5e51a15f9cb0dcb6ca17c3ac, removing the variable tabstops and
hard coding the column separation to 2 characters, but was not done correctly. 
The column_width assumes a gap of 1 character, so the computed number of
columns exceeds the terminal width when many small files are encountered.

A minor problem but surprisingly annoying.  A suggested patch is attached.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the busybox-cvs mailing list