public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Bernard Dautrevaux <DAUTREVAUX@microprocess.com>
To: "'Jose I. Cabrera'" <jicman@cinops.xerox.com>, gnu-win32@cygnus.com
Subject: RE: ls and long file names
Date: Fri, 26 Feb 1999 02:53:00 -0000	[thread overview]
Message-ID: <8135911A809AD211AF6300A02480D175034926@iis000.microdata.fr> (raw)

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

WARNING: multiple messages have this Message-ID
From: Bernard Dautrevaux <DAUTREVAUX@microprocess.com>
To: "'Jose I. Cabrera'" <jicman@cinops.xerox.com>, gnu-win32@cygnus.com
Subject: RE: ls and long file names
Date: Sun, 28 Feb 1999 23:02:00 -0000	[thread overview]
Message-ID: <8135911A809AD211AF6300A02480D175034926@iis000.microdata.fr> (raw)
Message-ID: <19990228230200.zlOj_swzIUkNPUWrlrZkpCPd-oLOHFCqlzEMeR7Q_L8@z> (raw)

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


             reply	other threads:[~1999-02-26  2:53 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-02-26  2:53 Bernard Dautrevaux [this message]
1999-02-28 23:02 ` Bernard Dautrevaux
  -- strict thread matches above, loose matches on Subject: below --
1999-02-26 17:18 Jose I. Cabrera
1999-02-28 23:02 ` Jose I. Cabrera
1999-02-26 16:04 Heribert Dahms
1999-02-28 23:02 ` Heribert Dahms
1999-02-26  7:40 Jose I. Cabrera
1999-02-28 23:02 ` Jose I. Cabrera
1999-02-26  7:18 Jose I. Cabrera
1999-02-28 23:02 ` Jose I. Cabrera
1999-02-25 18:21 Earnie Boyd
1999-02-28 23:02 ` Earnie Boyd
1999-02-25 14:24 Heribert Dahms
1999-02-28 23:02 ` Heribert Dahms
1999-02-25 10:58 Jose I. Cabrera
     [not found] ` < 004601be60f1$5fca2260$1226e70d@channels.usa.xerox.com >
1999-02-25 11:12   ` Mumit Khan
1999-02-28 23:02     ` Mumit Khan
1999-02-28 23:02 ` Jose I. Cabrera

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8135911A809AD211AF6300A02480D175034926@iis000.microdata.fr \
    --to=dautrevaux@microprocess.com \
    --cc=gnu-win32@cygnus.com \
    --cc=jicman@cinops.xerox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).