public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* RE: ls and long file names
@ 1999-02-26  2:53 Bernard Dautrevaux
  1999-02-28 23:02 ` Bernard Dautrevaux
  0 siblings, 1 reply; 18+ messages in thread
From: Bernard Dautrevaux @ 1999-02-26  2:53 UTC (permalink / raw)
  To: 'Jose I. Cabrera', gnu-win32

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2620 bytes --]

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

^ permalink raw reply	[flat|nested] 18+ messages in thread

* RE: ls and long file names
  1999-02-26  2:53 ls and long file names Bernard Dautrevaux
@ 1999-02-28 23:02 ` Bernard Dautrevaux
  0 siblings, 0 replies; 18+ messages in thread
From: Bernard Dautrevaux @ 1999-02-28 23:02 UTC (permalink / raw)
  To: 'Jose I. Cabrera', gnu-win32

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2621 bytes --]

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


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: ls and long file names
  1999-02-25 11:12   ` Mumit Khan
@ 1999-02-28 23:02     ` Mumit Khan
  0 siblings, 0 replies; 18+ messages in thread
From: Mumit Khan @ 1999-02-28 23:02 UTC (permalink / raw)
  To: Jose I. Cabrera; +Cc: cygwin

"Jose I. Cabrera" <jicman@cinops.xerox.com> writes:
> 
> Does anyone have any kind of idea on how to fix this?  I tried all kinds of s
> witches and got no different result.

Sure, just delete the longer filenames ;-) ls tries to make the listing
nice and tidy, and having a long pathname like you do, it's impossible
to get the names lined up in columns.

Regards,
Mumit


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: ls and long file names
  1999-02-26  7:18 Jose I. Cabrera
@ 1999-02-28 23:02 ` Jose I. Cabrera
  0 siblings, 0 replies; 18+ messages in thread
From: Jose I. Cabrera @ 1999-02-28 23:02 UTC (permalink / raw)
  To: Mumit Khan; +Cc: cygwin

Well, I tend to disagree that "...it's impossible to get the names
lined up in columns..."

Thanks for the info.

jose


----- Original Message ----- 
From: Mumit Khan <khan@xraylith.wisc.EDU>
To: Jose I. Cabrera <jicman@cinops.xerox.com>
Cc: <cygwin@sourceware.cygnus.com>
Sent: Thursday, February 25, 1999 2:12 PM
Subject: Re: ls and long file names 


>"Jose I. Cabrera" <jicman@cinops.xerox.com> writes:
>> 
>> Does anyone have any kind of idea on how to fix this?  I tried all kinds of s
>> witches and got no different result.
>
>Sure, just delete the longer filenames ;-) ls tries to make the listing
>nice and tidy, and having a long pathname like you do, it's impossible
>to get the names lined up in columns.
>
>Regards,
>Mumit
>
>


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: ls and long file names
  1999-02-26 17:18 Jose I. Cabrera
@ 1999-02-28 23:02 ` Jose I. Cabrera
  0 siblings, 0 replies; 18+ messages in thread
From: Jose I. Cabrera @ 1999-02-28 23:02 UTC (permalink / raw)
  To: Heribert Dahms, earnie_boyd; +Cc: cygwin users

Thank you all.

jose

----- Original Message ----- 
From: Heribert Dahms <heribert_dahms@icon-gmbh.de>
To: 'Jose I. Cabrera' <jicman@cinops.xerox.com>; <earnie_boyd@yahoo.com>
Cc: cygwin users <cygwin@sourceware.cygnus.com>
Sent: Friday, February 26, 1999 7:02 PM
Subject: RE: ls and long file names


>Hi Jose,
>
>please see below!
>
>Bye, Heribert (heribert_dahms@icon-gmbh.de)
>
>> -----Original Message-----
>> From: Jose I. Cabrera [SMTP:jicman@cinops.xerox.com]
>> Sent: Friday, February 26, 1999 16:46
>> To: earnie_boyd@yahoo.com
>> Cc: cygwin users
>> Subject: Re: ls and long file names
>> 
>> All,
>> 
>> I agree that this is ls the intended behavior, but I thought that
>>  there was a switch that would change this behavior and place
>>  them according to file name sizes.  Here is an example of VMS:
>> 
>> $ dir
>> 
>> Directory USER15:[JCABRERA]
>> 
>> FILES_20200758.COM;1                    FILES_20200758.OUT;1
>> FTPD.LOG;16         GAZ_OUT.TXT;1       JICMAN.DIR;1
>> JIC_SUBJ.COM;14
>> [Heribert]  [snip]
>> X.X;1               _ALIASES.TPU$JOURNAL;1
>> 
>> Total of 50 files.
>> $
>> 
>> as you can see, there are different file name sizes and yet, VMS
>> places
>>  them in columns, even though there are short names and long names.
>> I know what you are going to say, "Jose, move to MVS," but, could not
>> we have a switch that would make it this way?  It does not have to be
>> the default, just a switch.
>> 
>> [Heribert]  Hey, X.X is *my* filename! And I like VMS, but want to
>> avoid MVS 8-)
>> VMS defaults to a TABs@20-like, max 4 columns behaviour. BTW, I use:
>> $ sh sym d*
>>   DC == "DIRECTORY/NOHE/NOTR/NOTOT/COL=1/WI=FI=55/NOSIZE/DATE"
>>   D*IRECT == "DIR/DAT/SIZE"
>>   DN == "DIRECTORY/NOHE/NOTR/NOTOT/COL=1/WI=FI=80/NOSIZE/NODATE"
>> 
>> I suggest you take the ls source and implement a, hmm,  -4 switch...
>> 
>> [Heribert]  [snip]
>> 
>


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


^ permalink raw reply	[flat|nested] 18+ messages in thread

* RE: ls and long file names
  1999-02-25 14:24 Heribert Dahms
@ 1999-02-28 23:02 ` Heribert Dahms
  0 siblings, 0 replies; 18+ messages in thread
From: Heribert Dahms @ 1999-02-28 23:02 UTC (permalink / raw)
  To: 'Jose I. Cabrera', gnu-win32

Hi Jose,

it's not clear to me what you want!
You can force single column style with ls -1
and multi column with ls -x
according to the HP-UX man page.

Bye, Heribert (heribert_dahms@icon-gmbh.de)

> -----Original Message-----
> From:	Jose I. Cabrera [SMTP:jicman@cinops.xerox.com]
> Sent:	Thursday, February 25, 1999 20:02
> 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
> [Heribert]  [snip]
> 
> while if the files are small, you get:
> 
> <13:42:19> <11>ls
> erotlk1298.xls          w98-hp5si.prn           w981.01.16-990223b.prn
> [Heribert]  [snip]
> 
> Does anyone have any kind of idea on how to fix this?  I tried all
> kinds of switches and got no different result.
> 

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


^ permalink raw reply	[flat|nested] 18+ messages in thread

* RE: ls and long file names
  1999-02-26 16:04 Heribert Dahms
@ 1999-02-28 23:02 ` Heribert Dahms
  0 siblings, 0 replies; 18+ messages in thread
From: Heribert Dahms @ 1999-02-28 23:02 UTC (permalink / raw)
  To: 'Jose I. Cabrera', earnie_boyd; +Cc: cygwin users

Hi Jose,

please see below!

Bye, Heribert (heribert_dahms@icon-gmbh.de)

> -----Original Message-----
> From:	Jose I. Cabrera [SMTP:jicman@cinops.xerox.com]
> Sent:	Friday, February 26, 1999 16:46
> To:	earnie_boyd@yahoo.com
> Cc:	cygwin users
> Subject:	Re: ls and long file names
> 
> All,
> 
> I agree that this is ls the intended behavior, but I thought that
>  there was a switch that would change this behavior and place
>  them according to file name sizes.  Here is an example of VMS:
> 
> $ dir
> 
> Directory USER15:[JCABRERA]
> 
> FILES_20200758.COM;1                    FILES_20200758.OUT;1
> FTPD.LOG;16         GAZ_OUT.TXT;1       JICMAN.DIR;1
> JIC_SUBJ.COM;14
> [Heribert]  [snip]
> X.X;1               _ALIASES.TPU$JOURNAL;1
> 
> Total of 50 files.
> $
> 
> as you can see, there are different file name sizes and yet, VMS
> places
>  them in columns, even though there are short names and long names.
> I know what you are going to say, "Jose, move to MVS," but, could not
> we have a switch that would make it this way?  It does not have to be
> the default, just a switch.
> 
> [Heribert]  Hey, X.X is *my* filename! And I like VMS, but want to
> avoid MVS 8-)
> VMS defaults to a TABs@20-like, max 4 columns behaviour. BTW, I use:
> $ sh sym d*
>   DC == "DIRECTORY/NOHE/NOTR/NOTOT/COL=1/WI=FI=55/NOSIZE/DATE"
>   D*IRECT == "DIR/DAT/SIZE"
>   DN == "DIRECTORY/NOHE/NOTR/NOTOT/COL=1/WI=FI=80/NOSIZE/NODATE"
> 
> I suggest you take the ls source and implement a, hmm,  -4 switch...
> 
> [Heribert]  [snip]
> 

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


^ permalink raw reply	[flat|nested] 18+ messages in thread

* ls and long file names
  1999-02-25 10:58 Jose I. Cabrera
       [not found] ` < 004601be60f1$5fca2260$1226e70d@channels.usa.xerox.com >
@ 1999-02-28 23:02 ` Jose I. Cabrera
  1 sibling, 0 replies; 18+ messages in thread
From: Jose I. Cabrera @ 1999-02-28 23:02 UTC (permalink / raw)
  To: gnu-win32

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


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: ls and long file names
  1999-02-25 18:21 Earnie Boyd
@ 1999-02-28 23:02 ` Earnie Boyd
  0 siblings, 0 replies; 18+ messages in thread
From: Earnie Boyd @ 1999-02-28 23:02 UTC (permalink / raw)
  To: Jose I. Cabrera; +Cc: cygwin users

---"Jose I. Cabrera" <jicman@cinops.xerox.com> wrote:
8<
> Does anyone have any kind of idea on how to fix this?  I tried all
kinds of switches and got no different result.
8<

This is the intended behavior.  What is it you want fixed?  The only
solution I can see is for you to always display one file per line.  To
do this you would do `ls -1'.  This is a -one not a lower case el.
==
-                        \\||//
-------------------o0O0--Earnie--0O0o-------------------
--                earnie_boyd@yahoo.com               --
-- http://www.freeyellow.com/members5/gw32/index.html --
----------------------ooo0O--O0ooo----------------------

PS: Newbie's, you should visit my page.
_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: ls and long file names
  1999-02-26  7:40 Jose I. Cabrera
@ 1999-02-28 23:02 ` Jose I. Cabrera
  0 siblings, 0 replies; 18+ messages in thread
From: Jose I. Cabrera @ 1999-02-28 23:02 UTC (permalink / raw)
  To: earnie_boyd; +Cc: cygwin users

All,

I agree that this is ls the intended behavior, but I thought that
 there was a switch that would change this behavior and place
 them according to file name sizes.  Here is an example of VMS:

$ dir

Directory USER15:[JCABRERA]

FILES_20200758.COM;1                    FILES_20200758.OUT;1
FTPD.LOG;16         GAZ_OUT.TXT;1       JICMAN.DIR;1        JIC_SUBJ.COM;14
JIC_SUBJ.COM;13     JIC_SUBJ.COM;12     K.MAI;1             LO.JOU;1
LOGIN.COM;11        LOGIN.COM;10        LOGIN.COM;9         LOGINCOM.SAV;1
MAIL$1FEC834100050098.MAI;1             MAIL$20C80C5A00050098.MAI;1
MAIL$5F92D82100050099.MAI;1             MAIL$84EC0F7100050099.MAI;1
MAIL$9058647A0005009B.MAI;1             MAIL$D99B0E9700050099.MAI;1
MAIL$D9D2796100050099.MAI;1             MAIL$DA04301A00050099.MAI;1
MAIL$DA3A1E5600050099.MAI;1             MAIL$DCC4A43B00050099.MAI;1
MAIL$DCC94E7A00050099.MAI;1             MAIL$F5B2F5170005009B.MAI;1
MAIL.MAI;1          MAIL_20203993_SEND.TMP;1
MAIL_206005A6_SEND.TMP;1                MAIN.TPU$JOURNAL;8  MAIN.TPU$JOURNAL;7
MAIN.TPU$JOURNAL;6  NEW_TXT.TPU$JOURNAL;2
NEW_TXT.TPU$JOURNAL;1                   P1.;1               RJEOUT1.TMP;1
RJETMP.TMP;1        SDF.MAI;1           SDFSDF.MAI;1        SENDIT.COM;5
SENDIT.COM;4        SENDIT.COM;3        SIG.SIG;2           SIG.SIG;1
SNATPRINT.LIS;3     SNATPRINT.LIS;2     SNATPRINT.LIS;1     WASTEBASKET.MAI;1
X.X;1               _ALIASES.TPU$JOURNAL;1

Total of 50 files.
$

as you can see, there are different file name sizes and yet, VMS places
 them in columns, even though there are short names and long names.
I know what you are going to say, "Jose, move to MVS," but, could not
we have a switch that would make it this way?  It does not have to be
the default, just a switch.

Thanks.  BTW, I love bash.  If I didn't, I would not have written at all.

jose


----- Original Message ----- 
From: Earnie Boyd <earnie_boyd@yahoo.com>
To: Jose I. Cabrera <jicman@cinops.xerox.com>
Cc: cygwin users <cygwin@sourceware.cygnus.com>
Sent: Thursday, February 25, 1999 9:22 PM
Subject: Re: ls and long file names


>---"Jose I. Cabrera" <jicman@cinops.xerox.com> wrote:
>8<
>> Does anyone have any kind of idea on how to fix this?  I tried all
>kinds of switches and got no different result.
>8<
>
>This is the intended behavior.  What is it you want fixed?  The only
>solution I can see is for you to always display one file per line.  To
>do this you would do `ls -1'.  This is a -one not a lower case el.
>==
>-                        \\||//
>-------------------o0O0--Earnie--0O0o-------------------
>--                earnie_boyd@yahoo.com               --
>-- http://www.freeyellow.com/members5/gw32/index.html --
>----------------------ooo0O--O0ooo----------------------
>
>PS: Newbie's, you should visit my page.
>_________________________________________________________
>DO YOU YAHOO!?
>Get your free @yahoo.com address at http://mail.yahoo.com
>
>


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: ls and long file names
@ 1999-02-26 17:18 Jose I. Cabrera
  1999-02-28 23:02 ` Jose I. Cabrera
  0 siblings, 1 reply; 18+ messages in thread
From: Jose I. Cabrera @ 1999-02-26 17:18 UTC (permalink / raw)
  To: Heribert Dahms, earnie_boyd; +Cc: cygwin users

Thank you all.

jose

----- Original Message ----- 
From: Heribert Dahms <heribert_dahms@icon-gmbh.de>
To: 'Jose I. Cabrera' <jicman@cinops.xerox.com>; <earnie_boyd@yahoo.com>
Cc: cygwin users <cygwin@sourceware.cygnus.com>
Sent: Friday, February 26, 1999 7:02 PM
Subject: RE: ls and long file names


>Hi Jose,
>
>please see below!
>
>Bye, Heribert (heribert_dahms@icon-gmbh.de)
>
>> -----Original Message-----
>> From: Jose I. Cabrera [SMTP:jicman@cinops.xerox.com]
>> Sent: Friday, February 26, 1999 16:46
>> To: earnie_boyd@yahoo.com
>> Cc: cygwin users
>> Subject: Re: ls and long file names
>> 
>> All,
>> 
>> I agree that this is ls the intended behavior, but I thought that
>>  there was a switch that would change this behavior and place
>>  them according to file name sizes.  Here is an example of VMS:
>> 
>> $ dir
>> 
>> Directory USER15:[JCABRERA]
>> 
>> FILES_20200758.COM;1                    FILES_20200758.OUT;1
>> FTPD.LOG;16         GAZ_OUT.TXT;1       JICMAN.DIR;1
>> JIC_SUBJ.COM;14
>> [Heribert]  [snip]
>> X.X;1               _ALIASES.TPU$JOURNAL;1
>> 
>> Total of 50 files.
>> $
>> 
>> as you can see, there are different file name sizes and yet, VMS
>> places
>>  them in columns, even though there are short names and long names.
>> I know what you are going to say, "Jose, move to MVS," but, could not
>> we have a switch that would make it this way?  It does not have to be
>> the default, just a switch.
>> 
>> [Heribert]  Hey, X.X is *my* filename! And I like VMS, but want to
>> avoid MVS 8-)
>> VMS defaults to a TABs@20-like, max 4 columns behaviour. BTW, I use:
>> $ sh sym d*
>>   DC == "DIRECTORY/NOHE/NOTR/NOTOT/COL=1/WI=FI=55/NOSIZE/DATE"
>>   D*IRECT == "DIR/DAT/SIZE"
>>   DN == "DIRECTORY/NOHE/NOTR/NOTOT/COL=1/WI=FI=80/NOSIZE/NODATE"
>> 
>> I suggest you take the ls source and implement a, hmm,  -4 switch...
>> 
>> [Heribert]  [snip]
>> 
>


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 18+ messages in thread

* RE: ls and long file names
@ 1999-02-26 16:04 Heribert Dahms
  1999-02-28 23:02 ` Heribert Dahms
  0 siblings, 1 reply; 18+ messages in thread
From: Heribert Dahms @ 1999-02-26 16:04 UTC (permalink / raw)
  To: 'Jose I. Cabrera', earnie_boyd; +Cc: cygwin users

Hi Jose,

please see below!

Bye, Heribert (heribert_dahms@icon-gmbh.de)

> -----Original Message-----
> From:	Jose I. Cabrera [SMTP:jicman@cinops.xerox.com]
> Sent:	Friday, February 26, 1999 16:46
> To:	earnie_boyd@yahoo.com
> Cc:	cygwin users
> Subject:	Re: ls and long file names
> 
> All,
> 
> I agree that this is ls the intended behavior, but I thought that
>  there was a switch that would change this behavior and place
>  them according to file name sizes.  Here is an example of VMS:
> 
> $ dir
> 
> Directory USER15:[JCABRERA]
> 
> FILES_20200758.COM;1                    FILES_20200758.OUT;1
> FTPD.LOG;16         GAZ_OUT.TXT;1       JICMAN.DIR;1
> JIC_SUBJ.COM;14
> [Heribert]  [snip]
> X.X;1               _ALIASES.TPU$JOURNAL;1
> 
> Total of 50 files.
> $
> 
> as you can see, there are different file name sizes and yet, VMS
> places
>  them in columns, even though there are short names and long names.
> I know what you are going to say, "Jose, move to MVS," but, could not
> we have a switch that would make it this way?  It does not have to be
> the default, just a switch.
> 
> [Heribert]  Hey, X.X is *my* filename! And I like VMS, but want to
> avoid MVS 8-)
> VMS defaults to a TABs@20-like, max 4 columns behaviour. BTW, I use:
> $ sh sym d*
>   DC == "DIRECTORY/NOHE/NOTR/NOTOT/COL=1/WI=FI=55/NOSIZE/DATE"
>   D*IRECT == "DIR/DAT/SIZE"
>   DN == "DIRECTORY/NOHE/NOTR/NOTOT/COL=1/WI=FI=80/NOSIZE/NODATE"
> 
> I suggest you take the ls source and implement a, hmm,  -4 switch...
> 
> [Heribert]  [snip]
> 

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: ls and long file names
@ 1999-02-26  7:40 Jose I. Cabrera
  1999-02-28 23:02 ` Jose I. Cabrera
  0 siblings, 1 reply; 18+ messages in thread
From: Jose I. Cabrera @ 1999-02-26  7:40 UTC (permalink / raw)
  To: earnie_boyd; +Cc: cygwin users

All,

I agree that this is ls the intended behavior, but I thought that
 there was a switch that would change this behavior and place
 them according to file name sizes.  Here is an example of VMS:

$ dir

Directory USER15:[JCABRERA]

FILES_20200758.COM;1                    FILES_20200758.OUT;1
FTPD.LOG;16         GAZ_OUT.TXT;1       JICMAN.DIR;1        JIC_SUBJ.COM;14
JIC_SUBJ.COM;13     JIC_SUBJ.COM;12     K.MAI;1             LO.JOU;1
LOGIN.COM;11        LOGIN.COM;10        LOGIN.COM;9         LOGINCOM.SAV;1
MAIL$1FEC834100050098.MAI;1             MAIL$20C80C5A00050098.MAI;1
MAIL$5F92D82100050099.MAI;1             MAIL$84EC0F7100050099.MAI;1
MAIL$9058647A0005009B.MAI;1             MAIL$D99B0E9700050099.MAI;1
MAIL$D9D2796100050099.MAI;1             MAIL$DA04301A00050099.MAI;1
MAIL$DA3A1E5600050099.MAI;1             MAIL$DCC4A43B00050099.MAI;1
MAIL$DCC94E7A00050099.MAI;1             MAIL$F5B2F5170005009B.MAI;1
MAIL.MAI;1          MAIL_20203993_SEND.TMP;1
MAIL_206005A6_SEND.TMP;1                MAIN.TPU$JOURNAL;8  MAIN.TPU$JOURNAL;7
MAIN.TPU$JOURNAL;6  NEW_TXT.TPU$JOURNAL;2
NEW_TXT.TPU$JOURNAL;1                   P1.;1               RJEOUT1.TMP;1
RJETMP.TMP;1        SDF.MAI;1           SDFSDF.MAI;1        SENDIT.COM;5
SENDIT.COM;4        SENDIT.COM;3        SIG.SIG;2           SIG.SIG;1
SNATPRINT.LIS;3     SNATPRINT.LIS;2     SNATPRINT.LIS;1     WASTEBASKET.MAI;1
X.X;1               _ALIASES.TPU$JOURNAL;1

Total of 50 files.
$

as you can see, there are different file name sizes and yet, VMS places
 them in columns, even though there are short names and long names.
I know what you are going to say, "Jose, move to MVS," but, could not
we have a switch that would make it this way?  It does not have to be
the default, just a switch.

Thanks.  BTW, I love bash.  If I didn't, I would not have written at all.

jose


----- Original Message ----- 
From: Earnie Boyd <earnie_boyd@yahoo.com>
To: Jose I. Cabrera <jicman@cinops.xerox.com>
Cc: cygwin users <cygwin@sourceware.cygnus.com>
Sent: Thursday, February 25, 1999 9:22 PM
Subject: Re: ls and long file names


>---"Jose I. Cabrera" <jicman@cinops.xerox.com> wrote:
>8<
>> Does anyone have any kind of idea on how to fix this?  I tried all
>kinds of switches and got no different result.
>8<
>
>This is the intended behavior.  What is it you want fixed?  The only
>solution I can see is for you to always display one file per line.  To
>do this you would do `ls -1'.  This is a -one not a lower case el.
>==
>-                        \\||//
>-------------------o0O0--Earnie--0O0o-------------------
>--                earnie_boyd@yahoo.com               --
>-- http://www.freeyellow.com/members5/gw32/index.html --
>----------------------ooo0O--O0ooo----------------------
>
>PS: Newbie's, you should visit my page.
>_________________________________________________________
>DO YOU YAHOO!?
>Get your free @yahoo.com address at http://mail.yahoo.com
>
>


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: ls and long file names
@ 1999-02-26  7:18 Jose I. Cabrera
  1999-02-28 23:02 ` Jose I. Cabrera
  0 siblings, 1 reply; 18+ messages in thread
From: Jose I. Cabrera @ 1999-02-26  7:18 UTC (permalink / raw)
  To: Mumit Khan; +Cc: cygwin

Well, I tend to disagree that "...it's impossible to get the names
lined up in columns..."

Thanks for the info.

jose


----- Original Message ----- 
From: Mumit Khan <khan@xraylith.wisc.EDU>
To: Jose I. Cabrera <jicman@cinops.xerox.com>
Cc: <cygwin@sourceware.cygnus.com>
Sent: Thursday, February 25, 1999 2:12 PM
Subject: Re: ls and long file names 


>"Jose I. Cabrera" <jicman@cinops.xerox.com> writes:
>> 
>> Does anyone have any kind of idea on how to fix this?  I tried all kinds of s
>> witches and got no different result.
>
>Sure, just delete the longer filenames ;-) ls tries to make the listing
>nice and tidy, and having a long pathname like you do, it's impossible
>to get the names lined up in columns.
>
>Regards,
>Mumit
>
>


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: ls and long file names
@ 1999-02-25 18:21 Earnie Boyd
  1999-02-28 23:02 ` Earnie Boyd
  0 siblings, 1 reply; 18+ messages in thread
From: Earnie Boyd @ 1999-02-25 18:21 UTC (permalink / raw)
  To: Jose I. Cabrera; +Cc: cygwin users

---"Jose I. Cabrera" <jicman@cinops.xerox.com> wrote:
8<
> Does anyone have any kind of idea on how to fix this?  I tried all
kinds of switches and got no different result.
8<

This is the intended behavior.  What is it you want fixed?  The only
solution I can see is for you to always display one file per line.  To
do this you would do `ls -1'.  This is a -one not a lower case el.
==
-                        \\||//
-------------------o0O0--Earnie--0O0o-------------------
--                earnie_boyd@yahoo.com               --
-- http://www.freeyellow.com/members5/gw32/index.html --
----------------------ooo0O--O0ooo----------------------

PS: Newbie's, you should visit my page.
_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 18+ messages in thread

* RE: ls and long file names
@ 1999-02-25 14:24 Heribert Dahms
  1999-02-28 23:02 ` Heribert Dahms
  0 siblings, 1 reply; 18+ messages in thread
From: Heribert Dahms @ 1999-02-25 14:24 UTC (permalink / raw)
  To: 'Jose I. Cabrera', gnu-win32

Hi Jose,

it's not clear to me what you want!
You can force single column style with ls -1
and multi column with ls -x
according to the HP-UX man page.

Bye, Heribert (heribert_dahms@icon-gmbh.de)

> -----Original Message-----
> From:	Jose I. Cabrera [SMTP:jicman@cinops.xerox.com]
> Sent:	Thursday, February 25, 1999 20:02
> 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
> [Heribert]  [snip]
> 
> while if the files are small, you get:
> 
> <13:42:19> <11>ls
> erotlk1298.xls          w98-hp5si.prn           w981.01.16-990223b.prn
> [Heribert]  [snip]
> 
> Does anyone have any kind of idea on how to fix this?  I tried all
> kinds of switches and got no different result.
> 

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: ls and long file names
       [not found] ` < 004601be60f1$5fca2260$1226e70d@channels.usa.xerox.com >
@ 1999-02-25 11:12   ` Mumit Khan
  1999-02-28 23:02     ` Mumit Khan
  0 siblings, 1 reply; 18+ messages in thread
From: Mumit Khan @ 1999-02-25 11:12 UTC (permalink / raw)
  To: Jose I. Cabrera; +Cc: cygwin

"Jose I. Cabrera" <jicman@cinops.xerox.com> writes:
> 
> Does anyone have any kind of idea on how to fix this?  I tried all kinds of s
> witches and got no different result.

Sure, just delete the longer filenames ;-) ls tries to make the listing
nice and tidy, and having a long pathname like you do, it's impossible
to get the names lined up in columns.

Regards,
Mumit


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 18+ messages in thread

* ls and long file names
@ 1999-02-25 10:58 Jose I. Cabrera
       [not found] ` < 004601be60f1$5fca2260$1226e70d@channels.usa.xerox.com >
  1999-02-28 23:02 ` Jose I. Cabrera
  0 siblings, 2 replies; 18+ messages in thread
From: Jose I. Cabrera @ 1999-02-25 10:58 UTC (permalink / raw)
  To: gnu-win32

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

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~1999-02-28 23:02 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-02-26  2:53 ls and long file names Bernard Dautrevaux
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

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).