public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Strange behaviour of ls listing of directories
@ 2002-05-24  8:57 Dr. Volker Zell
  2002-05-26 10:18 ` Jim.George
       [not found] ` <Pine.CYG.4.44.0205260855570.1876-100000@gateway.GEORGE.CO. UK>
  0 siblings, 2 replies; 3+ messages in thread
From: Dr. Volker Zell @ 2002-05-24  8:57 UTC (permalink / raw)
  To: cygwin

Hi

I just recently discovered the following behaviour of ls:
When I type in ls in the same directory a couple of times, sometimes the first ls call shows
some of the directories with 0 bytes and in the next calls with an actual byte number as you
can see below.

Anybody else seeing this ?
This is the same on NT or W2K, with netsec enabled ot ntea enabled.

vzell:/c> type ll
ll is aliased to `ls -lat --show-control-chars'
vzell:/c> ll
ls: pagefile.sys: Permission denied
total 489
drwxr-xr-x    7 vzell    admin           0 May 23 12:45 tmp/             <-- 0 Bytes
drwxr-xr-x    8 vzell    admin           0 May 23 11:59 temp/            <-- 0 Bytes
drwxr-xr-x   28 vzell    admin       24576 May 21 01:05 WINNT/
-rw-r--r--    1 vzell    admin      276344 May 20 19:08 Tree.Far
drwxr-xr-x   20 vzell    admin        4096 May 16 11:36 Programme/
drwxr-xr-x   13 vzell    admin        4096 May 16 11:36 oracle/
drwxr-xr-x   10 vzell    admin        4096 Feb 14 17:56 gnu/
drwxr-xr-x    4 vzell    admin           0 Jun 13  2001 xircom/
drwxr-xr-x    2 vzell    admin           0 Jun  4  2001 bin/             <-- 0 Bytes
drwxr-xr-x    3 vzell    admin           0 Dec 29  2000 RECYCLER/
drwxr-xr-x    9 vzell    admin           0 Nov 29  2000 MSOffice/
-r--r--r--    1 vzell    admin       26816 Jun 28  2000 NTDETECT.COM
-r--r--r--    1 vzell    admin      158160 Jun 28  2000 ntldr
-r--r--r--    1 vzell    admin         289 Jun 28  2000 boot.ini
drwxr-xr-x    2 vzell    admin           0 Jun 28  2000 RECYCLED/
-rwxr-xr-x    1 vzell    admin           0 Jun 27  2000 AUTOEXEC.BAT*
-rw-r--r--    1 vzell    admin           0 Jun 27  2000 CONFIG.SYS
-r--r--r--    1 vzell    admin           0 Jun 27  2000 IO.SYS
-r--r--r--    1 vzell    admin           0 Jun 27  2000 MSDOS.SYS
vzell:/c> ll
ls: pagefile.sys: Permission denied
total 521
drwxr-xr-x    7 vzell    admin       12288 May 23 12:45 tmp/            <-- xxx Bytes
drwxr-xr-x    8 vzell    admin       12288 May 23 11:59 temp/           <-- xxx Bytes
drwxr-xr-x   28 vzell    admin       24576 May 21 01:05 WINNT/
-rw-r--r--    1 vzell    admin      276344 May 20 19:08 Tree.Far
drwxr-xr-x   20 vzell    admin        4096 May 16 11:36 Programme/
drwxr-xr-x   13 vzell    admin        4096 May 16 11:36 oracle/
drwxr-xr-x   10 vzell    admin        4096 Feb 14 17:56 gnu/
drwxr-xr-x    4 vzell    admin           0 Jun 13  2001 xircom/         <-- 0 Bytes even so there are files in the directory
drwxr-xr-x    2 vzell    admin        4096 Jun  4  2001 bin/            <-- xxx Bytes
drwxr-xr-x    3 vzell    admin           0 Dec 29  2000 RECYCLER/
drwxr-xr-x    9 vzell    admin        4096 Nov 29  2000 MSOffice/
-r--r--r--    1 vzell    admin       26816 Jun 28  2000 NTDETECT.COM
-r--r--r--    1 vzell    admin      158160 Jun 28  2000 ntldr
-r--r--r--    1 vzell    admin         289 Jun 28  2000 boot.ini
drwxr-xr-x    2 vzell    admin           0 Jun 28  2000 RECYCLED/
-rwxr-xr-x    1 vzell    admin           0 Jun 27  2000 AUTOEXEC.BAT*
-rw-r--r--    1 vzell    admin           0 Jun 27  2000 CONFIG.SYS
-r--r--r--    1 vzell    admin           0 Jun 27  2000 IO.SYS
-r--r--r--    1 vzell    admin           0 Jun 27  2000 MSDOS.SYS

Ciao
  Volker


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

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

* Re: Strange behaviour of ls listing of directories
  2002-05-24  8:57 Strange behaviour of ls listing of directories Dr. Volker Zell
@ 2002-05-26 10:18 ` Jim.George
       [not found] ` <Pine.CYG.4.44.0205260855570.1876-100000@gateway.GEORGE.CO. UK>
  1 sibling, 0 replies; 3+ messages in thread
From: Jim.George @ 2002-05-26 10:18 UTC (permalink / raw)
  To: Dr. Volker Zell; +Cc: cygwin

On Fri, 24 May 2002, Dr. Volker Zell wrote:

> Hi
>
> I just recently discovered the following behaviour of ls:
> When I type in ls in the same directory a couple of times, sometimes the first ls call shows
> some of the directories with 0 bytes and in the next calls with an actual byte number as you
> can see below.
>
> Anybody else seeing this ?
> This is the same on NT or W2K, with netsec enabled ot ntea enabled.
>
<snip>
> drwxr-xr-x    4 vzell    admin           0 Jun 13  2001 xircom/
<-- 0 Bytes even so there are files in the directory
> drwxr-xr-x    2 vzell    admin        4096 Jun  4  2001 bin/            <-- xxx Bytes
> drwxr-xr-x    3 vzell    admin           0 Dec 29  2000 RECYCLER/
> drwxr-xr-x    9 vzell    admin        4096 Nov 29  2000 MSOffice/
> -r--r--r--    1 vzell    admin       26816 Jun 28  2000 NTDETECT.COM
> -r--r--r--    1 vzell    admin      158160 Jun 28  2000 ntldr
> -r--r--r--    1 vzell    admin         289 Jun 28  2000 boot.ini
> drwxr-xr-x    2 vzell    admin           0 Jun 28  2000 RECYCLED/
> -rwxr-xr-x    1 vzell    admin           0 Jun 27  2000 AUTOEXEC.BAT*
> -rw-r--r--    1 vzell    admin           0 Jun 27  2000 CONFIG.SYS
> -r--r--r--    1 vzell    admin           0 Jun 27  2000 IO.SYS
> -r--r--r--    1 vzell    admin           0 Jun 27  2000 MSDOS.SYS
>
> Ciao
>   Volker
>
Do you get the same behaviour with 'ls -lat'?

I got the same as yourself with the --show-control-chars but not with ls
-lat.


Jim



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

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

* Re: Strange behaviour of ls listing of directories
       [not found] ` <Pine.CYG.4.44.0205260855570.1876-100000@gateway.GEORGE.CO. UK>
@ 2002-05-26 16:56   ` Larry Hall (RFK Partners, Inc)
  0 siblings, 0 replies; 3+ messages in thread
From: Larry Hall (RFK Partners, Inc) @ 2002-05-26 16:56 UTC (permalink / raw)
  To: jim.george, Dr. Volker Zell; +Cc: cygwin

At 03:57 AM 5/26/2002, Jim.George wrote:
>On Fri, 24 May 2002, Dr. Volker Zell wrote:
>
> > Hi
> >
> > I just recently discovered the following behaviour of ls:
> > When I type in ls in the same directory a couple of times, sometimes the first ls call shows
> > some of the directories with 0 bytes and in the next calls with an actual byte number as you
> > can see below.
> >
> > Anybody else seeing this ?
> > This is the same on NT or W2K, with netsec enabled ot ntea enabled.
> >
><snip>
> > drwxr-xr-x    4 vzell    admin           0 Jun 13  2001 xircom/
><-- 0 Bytes even so there are files in the directory
> > drwxr-xr-x    2 vzell    admin        4096 Jun  4  2001 bin/            <-- xxx Bytes
> > drwxr-xr-x    3 vzell    admin           0 Dec 29  2000 RECYCLER/
> > drwxr-xr-x    9 vzell    admin        4096 Nov 29  2000 MSOffice/
> > -r--r--r--    1 vzell    admin       26816 Jun 28  2000 NTDETECT.COM
> > -r--r--r--    1 vzell    admin      158160 Jun 28  2000 ntldr
> > -r--r--r--    1 vzell    admin         289 Jun 28  2000 boot.ini
> > drwxr-xr-x    2 vzell    admin           0 Jun 28  2000 RECYCLED/
> > -rwxr-xr-x    1 vzell    admin           0 Jun 27  2000 AUTOEXEC.BAT*
> > -rw-r--r--    1 vzell    admin           0 Jun 27  2000 CONFIG.SYS
> > -r--r--r--    1 vzell    admin           0 Jun 27  2000 IO.SYS
> > -r--r--r--    1 vzell    admin           0 Jun 27  2000 MSDOS.SYS
> >
> > Ciao
> >   Volker
> >
>Do you get the same behaviour with 'ls -lat'?
>
>I got the same as yourself with the --show-control-chars but not with ls
>-lat.


No, there's more to it than that, at least based on what I see.  I get the 
same results as Volker.  It doesn't matter what flags I give ls (in addition
to "-l" that is).  I only have "ntsec" set.  Perhaps you tried 
"--show-control-chars" the first time in a directory and "-lat" after that?

  

Larry Hall                              lhall@rfk.com
RFK Partners, Inc.                      http://www.rfk.com
838 Washington Street                   (508) 893-9779 - RFK Office
Holliston, MA 01746                     (508) 893-9889 - FAX


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

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

end of thread, other threads:[~2002-05-26 17:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-24  8:57 Strange behaviour of ls listing of directories Dr. Volker Zell
2002-05-26 10:18 ` Jim.George
     [not found] ` <Pine.CYG.4.44.0205260855570.1876-100000@gateway.GEORGE.CO. UK>
2002-05-26 16:56   ` Larry Hall (RFK Partners, Inc)

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