This is the mail archive of the cygwin@sourceware.cygnus.com
mailing list for the Cygwin project. See the Cygwin
home page for more information.
[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index] [Subject Index] [Author Index] [Thread Index]
RE: ls and long file names
- To: "'Jose I. Cabrera'" <jicman@cinops.xerox.com>, gnu-win32@cygnus.com
- Subject: RE: ls and long file names
- From: Bernard Dautrevaux <DAUTREVAUX@microprocess.com>
- Date: Fri, 26 Feb 1999 11:48:41 +0100
- Delivered-To: listarch-cygwin@sourceware.cygnus.com
- Delivered-To: mailing list cygwin@sourceware.cygnus.com
- Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
- Sender: cygwin-owner@sourceware.cygnus.com
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@microprocess.com
b.dautrevaux@usa.net
--------------------------------------------
> -----Original Message-----
> From: Jose I. Cabrera [mailto:jicman@cinops.xerox.com]
> Sent: Thursday, February 25, 1999 8:02 PM
> To: gnu-win32@cygnus.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@sourceware.cygnus.com
>
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com