From owner-freebsd-bugs Tue Aug 29 23:00:02 1995 Return-Path: bugs-owner Received: (from majordom@localhost) by freefall.FreeBSD.org (8.6.11/8.6.6) id XAA11792 for bugs-outgoing; Tue, 29 Aug 1995 23:00:02 -0700 Received: (from gnats@localhost) by freefall.FreeBSD.org (8.6.11/8.6.6) id XAA11784 ; Tue, 29 Aug 1995 23:00:01 -0700 Resent-Date: Tue, 29 Aug 1995 23:00:01 -0700 Resent-Message-Id: <199508300600.XAA11784@freefall.FreeBSD.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, jdl@chrome.onramp.net Received: from mail.barrnet.net (mail.barrnet.net [131.119.246.7]) by freefall.FreeBSD.org (8.6.11/8.6.6) with ESMTP id WAA11729 for ; Tue, 29 Aug 1995 22:58:06 -0700 Received: from chrome.onramp.net (chrome.onramp.net [199.1.166.202]) by mail.barrnet.net (8.6.10/MAIL-RELAY-LEN) with ESMTP id WAA25716 for ; Tue, 29 Aug 1995 22:57:23 -0700 Received: (from jdl@localhost) by chrome.onramp.net (8.6.11/8.6.9) id AAA07802; Wed, 30 Aug 1995 00:54:36 -0500 Message-Id: <199508300554.AAA07802@chrome.onramp.net> Date: Wed, 30 Aug 1995 00:54:36 -0500 From: jdl@chrome.onramp.net Reply-To: jdl@chrome.onramp.net To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: bin/715: ls gives weird tabular form Sender: bugs-owner@freebsd.org Precedence: bulk >Number: 715 >Category: bin >Synopsis: ls gives weird tabular form >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Aug 29 23:00:01 PDT 1995 >Last-Modified: >Originator: Jon Loeliger >Organization: Chromatic Research >Release: FreeBSD 2.0-BUILT-19950612 i386 >Environment: Known to be in 2.0.5 7/26 SNAP and 2.2 -current >Description: The /bin/ls program gives weird tabular form depending on width of window. On 2.0.5, a window with width of 111 gives nice output: chrome 3374 % ls COPYRIGHT etc mnt stand u01 OK kernel proc sys usr bin kernel.GENERIC root tmp var dev lkm sbin u00 But a width of 112 gives odd behaviour: chrome 3375 % ls COPYRIGHT dev kernel.GENERIC proc stand u00 var OK etc lkm root sys u01 bin kernel mnt sbin tmp usr Notice that at 111, it still only used the 80-columns of default. On the 2.2 -current release, the odd happenings occur between 95/96. Curiously, both cut off values are multiples of 8. It smells of an uninitialized variable in ls's formating somewhere? >How-To-Repeat: See Description. >Fix: Use a better window width. Use ``ls -1'' :-) >Audit-Trail: >Unformatted: