bin/59320: Using ls -h (on FBSD 5.x) causes unaligned formatting

Mark Badolato mbadolato at cybernox.com
Sun Nov 16 00:10:23 PST 2003


>Number:         59320
>Category:       bin
>Synopsis:       Using ls -h (on FBSD 5.x) causes unaligned formatting
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Nov 16 00:10:16 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Mark Badolato
>Release:        FreeBSD 5.1-RELEASE-p10 i386
>Organization:
>Environment:
System: FreeBSD mail.XXXYYY.com 5.1-RELEASE-p10 FreeBSD 5.1-RELEASE-p10 #0: Sun Nov 16 00:25:54 MST 2003 mbadolato at cybernox.com:/usr/obj/usr/src/sys/AXE i386


	
>Description:
On 5.x systems, using ls with the -h switch causes columns to line up incorrectly, as the size column is not right-justified.
>How-To-Repeat:
execute an ls command with the -h option:
-bash-2.05b$ ls -lh      
total 6
-rwx------  1 root       mbadolato  59B Nov 15 18:37 cvs.sh
-rwxr-xr-x  1 mbadolato  mbadolato  51B Nov 15 18:37 new_ports.sh
drwxr-xr-x  2 mbadolato  mbadolato  512B Nov 16 00:42 source
-bash-2.05b$ ls -l 
total 6
-rwx------  1 root       mbadolato   59 Nov 15 18:37 cvs.sh
-rwxr-xr-x  1 mbadolato  mbadolato   51 Nov 15 18:37 new_ports.sh
drwxr-xr-x  2 mbadolato  mbadolato  512 Nov 16 00:42 source


>Fix:

	


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list