Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Message-ID: <8135911A809AD211AF6300A02480D175034926@iis000.microdata.fr> From: Bernard Dautrevaux To: "'Jose I. Cabrera'" , gnu-win32 AT cygnus DOT com Subject: RE: ls and long file names Date: Fri, 26 Feb 1999 11:48:41 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.1960.3) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id FAA02840 That is purely normal ls behaviour: ls tries to put as many equal length columns on the screen; the length of the column has some minimum (32 perhaps) but is extended to fit the longest file name in the directory. So if you have very long fil enames, the column width is set, e.g. to 64 characters, and ls has no space on the current tty to display more than one (it will need 128 characters-wide window to display 2, but usually is given an 80-chars one). HTH, Bernard -------------------------------------------- Bernard Dautrevaux Microprocess Ingéniérie 97 bis, rue de Colombes 92400 COURBEVOIE FRANCE Tel: +33 (0) 1 47 68 80 80 Fax: +33 (0) 1 47 88 97 85 e-mail: dautrevaux AT microprocess DOT com b DOT dautrevaux AT usa DOT net -------------------------------------------- > -----Original Message----- > From: Jose I. Cabrera [mailto:jicman AT cinops DOT xerox DOT com] > Sent: Thursday, February 25, 1999 8:02 PM > To: gnu-win32 AT cygnus DOT com > Subject: ls and long file names > > > When there is a file with a long name in a directory, the ls > output defaults to one item per line. i.e. > > <13:57:44> <6>ls > 10jobs.sh > 1liner > 3_5_5.xfc > Add2files > Addfile.txt > CPBU_East_and_West_Phone_List_Updated_January_7.doc > CPBUphonelist.txt > CPBUphonelist2.txt > Comm.pl > Comm.pl.discuss > Comm_pl-1_8_tar > Commdoc.txt > FIXEWOD.PL > Gazette > Ivelearned.txt > MONITO~1.PL > Macros > N3217507.xfc > N3217508.xfc > N3217508.zip > N3218063.xfc > emailbirthdays.pl > epod > epodsave.txt > ewod > firmware > fixtopten > fixtten > full.exe > gazette.txt > gazettes > gdbx_exe.gz > getallprov.pl > getallpsalm.pl > getfromodouls.p > quote > readers > remote_tar > rename.p > save > sch_gaz > sch_gaz.odouls > sendgaz > sendgaz9.pl > sendgazette > sendjob > sendmail > sendmail.exe > sendnote > sendquest > sendreq > setp > socket.pl > socketget.p > swod > telopt.p > topten > trayswitch.prn > typeg > usr > webget.p > <13:58:10> <7> > > while if the files are small, you get: > > <13:42:19> <11>ls > erotlk1298.xls w98-hp5si.prn w981.01.16-990223b.prn > w98-1-01-16.prn w98-hp5sib.prn w981.01.16-990223c.prn > w98-1-01-16b.prn w98-hp5sic.prn > w98-1-01-16c.prn w981.01.16-990223.prn > <13:44:50> <12> > > Does anyone have any kind of idea on how to fix this? I > tried all kinds of switches and got no different result. > > anyone? > > thanks, > > jose > > > -- > Want to unsubscribe from this list? > Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com > -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com