From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2044 invoked by alias); 26 May 2002 17:32:43 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 2034 invoked from network); 26 May 2002 17:32:39 -0000 Received: from unknown (HELO antiochus-fe0.ultra.net) (146.115.8.188) by sources.redhat.com with SMTP; 26 May 2002 17:32:39 -0000 Received: from enterprise-e.rfk.com (208-59-182-63.s1333.apx1.sbo.ma.dialup.rcn.com [208.59.182.63]) by antiochus-fe0.ultra.net (8.8.8/ult/n20340/mtc.v2) with ESMTP id NAA15853; Sun, 26 May 2002 13:32:34 -0400 (EDT) Message-Id: <4.3.1.2.20020526131905.02748158@pop.ma.ultranet.com> X-Sender: lhall@pop.ma.ultranet.com Date: Sun, 26 May 2002 16:56:00 -0000 To: jim.george@blueyonder.co.uk, "Dr. Volker Zell" From: "Larry Hall (RFK Partners, Inc)" Subject: Re: Strange behaviour of ls listing of directories Cc: cygwin@cygwin.com In-Reply-To: References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-SW-Source: 2002-05/txt/msg01607.txt.bz2 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. > > > > > 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/