delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/04/21/15:32:46

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
From: ericblake AT comcast DOT net (Eric Blake)
To: Dave Korn <dave DOT korn AT artimi DOT com>, cygwin AT cygwin DOT com
Subject: RE: findutils still broken
Date: Thu, 21 Apr 2005 19:32:20 +0000
Message-Id: <042120051932.11587.4267FFC40005D1FE00002D4322058891160A050E040D0C079D0A@comcast.net>
X-Authenticated-Sender: ZXJpY2JsYWtlQGNvbWNhc3QubmV0

>   Well, that was my next step, but I'm off home for the evening.
> 
> dk AT mace /artimi> cd /proc/registry
> dk AT mace /proc/registry> cd HKEY_CLASSES_ROOT/
> dk AT mace /proc/registry/HKEY_CLASSES_ROOT> cd \*
> dk AT mace /proc/registry/HKEY_CLASSES_ROOT/*> ls
> AlwaysShowExt  InfoTip  OpenWithList  QuickTip  TileInfo  shellex
> dk AT mace /proc/registry/HKEY_CLASSES_ROOT/*> cd InfoTip
> bash: cd: InfoTip: Not a directory
> dk AT mace /proc/registry/HKEY_CLASSES_ROOT/*> cd QuickTip
> bash: cd: QuickTip: Not a directory
> dk AT mace /proc/registry/HKEY_CLASSES_ROOT/*>
> dk AT mace /proc/registry/HKEY_CLASSES_ROOT/*> cd ..
> dk AT mace /proc/registry/HKEY_CLASSES_ROOT> cd .386/
> dk AT mace /proc/registry/HKEY_CLASSES_ROOT/.386> cd [TAB-TAB]
> @                  PerceivedType      PersistentHandler
> dk AT mace /proc/registry/HKEY_CLASSES_ROOT/.386> cd PersistentHandler/
> dk AT mace /proc/registry/HKEY_CLASSES_ROOT/.386/PersistentHandler> ls
> @
> dk AT mace /proc/registry/HKEY_CLASSES_ROOT/.386/PersistentHandler> cat @
> {098f2470-bae0-11cd-b579-08002b30bfeb} dk AT mace
> /proc/registry/HKEY_CLASSES_ROOT/
> 
>   It does look as if there's a dll bug preventing it from changing into
> subdirs when there's an asterisk in the path.  Dunno why it doesn't go on to
> iterate the rest of the /proc tree, although if you try "find /proc -xdev"
> it does enumerate more of the top-level.

Works for me:
$ cd /proc/registry/HKEY_CLASSES_ROOT/\*
$ ls -F
AlwaysShowExt  InfoTip  shellex/
$ cat InfoTip
prop:Type;Author;Title;Subject;Comment;Size
$ cd shellex
$ /bin/pwd
/proc/registry/HKEY_CLASSES_ROOT/*/shellex

The problem in your demo is that not all registry entries are keys - some (including hkcr/*/InfoTip) are values.  In /proc/registry, registry keys map to directories, registry values map to files, and the contents of the values are found by reading the files.


--
Eric Blake



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