delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/06/07/07:32:23

X-Spam-Check-By: sourceware.org
From: "Dave Korn" <dave DOT korn AT artimi DOT com>
To: <cygwin AT cygwin DOT com>
References: <DD74FBB8EE28D441903D56487861CD9D097177C4 AT lonpexch01 DOT citrite DOT net>
Subject: RE: Certain files in the system32 directory are not listed
Date: Thu, 7 Jun 2007 12:30:38 +0100
Message-ID: <04a701c7a8f7$45de8d30$2e08a8c0@CAM.ARTIMI.COM>
MIME-Version: 1.0
X-Mailer: Microsoft Office Outlook 11
In-Reply-To: <DD74FBB8EE28D441903D56487861CD9D097177C4@lonpexch01.citrite.net>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On 07 June 2007 12:13, John Cooper wrote:

> Some files that exist in the C:/WINDOWS/system32 directory are not
> listed when running `ls' or `echo' from a cygwin bash or zsh shell.
> Examples include mstsc.exe and iisapp.vbs.
> 
> These files are both listed when running 'dir' in a Windows cmd prompt -
> they also do not seem to be "hidden" according to `attrib' and `dir /a'.
> 
> Cygwin `ls' lists 1757 files in this directory whereas cmd's `dir' lists
> 1804.

  That's funny.  I get 2063 under cmd and 2072 from ls under bash.

/win/c/WINDOWS $ diff -pu list-from-cmd.txt list-from-ls.txt  | grep ^[+-]
--- list-from-cmd.txt           2007-06-07 12:25:50.564375000 +0100
+++ list-from-ls.txt            2007-06-07 12:25:56.330000000 +0100
+Microsoft
+WindowsLogon.manifest
+cdplayer.exe.manifest
+dllcache
+logonui.exe.manifest
+ncpa.cpl.manifest
+nwc.cpl.manifest
+sapi.cpl.manifest
+wuaucpl.cpl.manifest

> Does anyone know what might be causing this?

  In my case, cmd.exe's dir ignores files with hidden/system attribs, whereas
ls sees them.  In your case, you'll have to figure out which files one can see
that the other can't, then we can try and figure out what's special about
them.  I ran "dir /b system32 >list-from-cmd.txt" in a cmd shell in \WINDOWS
and "ls -1 system32 >list-from-ls.txt" in a bash shell in the same dir, then I
ran d2u and sort on both files and used diff as above to spot the changes.

 
> I'm running on Windows Server 2003 SP1 (x64) and appear to have Cygwin
> 1.5.24-2.
> (could that fact that I'm using x64 be contributing to the problem?)

  Unlikely to be related.

    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019