Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!philabs!cmcl2!seismo!mcvax!diku!olamb!kimcm From: kimcm@olamb.UUCP (Kim Chr. Madsen) Newsgroups: net.unix Subject: Re: /bin/ls -C Question Message-ID: <149@olamb.UUCP> Date: Fri, 21-Feb-86 09:04:40 EST Article-I.D.: olamb.149 Posted: Fri Feb 21 09:04:40 1986 Date-Received: Mon, 24-Feb-86 07:28:04 EST References: <337@chinet.UUCP> Organization: AmbraSoft A/S Lines: 19 Keywords: ls [come on ye little faithfull friends -- and eat me !] > Ok, here is my question to the net. Why does ls -C Sometimes > NOT print across the screen? Most of the time when I enter > a ls -C I get a nice diretory like: > News fvps.c h19 mbox vps.c > But some times a directory will list one per line on me. What does > ls make this decision on? I have seen this behavior on both at&t 3b2 > machines and on Tandy 6000 machines. (sys V on one Xenix 3 on the latter) > Any thoughts??? Well on the 3b2 the answer is: If a filename in the directory is exactly 16 characters long the colomnized version of ls will fail. A kludge to handle this is to pipe `ls' though `pr -4' to get a four colomn output... Kim Chr. Madsen AmbraSoft A/S kimcm@olamb.uucp