delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/04/14/18:36:30

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Message-ID: <F76C9B2DA2FC4C4CA0A18E288BBCBCF7082177D0@nihexchange24.nih.gov>
From: "Buchbinder, Barry (NIH/NIAID)" <BBuchbinder AT niaid DOT nih DOT gov>
To: cygwin AT cygwin DOT com
Subject: ls gets lost in /proc/registry
Date: Wed, 14 Apr 2004 18:35:45 -0400
MIME-Version: 1.0
X-IsSubscribed: yes

I did an ls -R through /proc/registry.  When ls hit the mount table, with
cygdrive = / , it got lost, thought the / entry was the root directory, and
went to / before continuing with the rest of /proc/registry.

I don't know if this is a bug, feature, quirk, "by design", or "none of the
above", but I personally found it to be an unexpected behavior.  Also, it
seems that there is a chance for an infinite loop, if Cygwin starts treating
virtual directories more like real directories and files more like real
directories and files.  I'm not asking for anything to be done about it (how
many people use ls -R to scan the entire registry?) -- this is more of a
heads-up.

Here's my mount table:

/proc/registry> mount
c:\cygwin\bin on /usr/bin type user (binmode)
c:\cygwin\lib on /usr/lib type user (binmode)
c:\cygwin on / type user (binmode)
c: on /c type user (binmode,noumount)
d: on /d type user (binmode,noumount)
h: on /h type user (binmode,noumount)

Here's what happens:

/proc/registry> /bin/ls -1Ra 'HKEY_USERS/[snip]/Software/Cygnus
Solutions/Cygwin/mounts v2'
HKEY_USERS/[snip]/Software/Cygnus Solutions/Cygwin/mounts v2:
.
..
/
/usr/bin
/usr/lib
cygdrive flags
cygdrive prefix

/:
.
..
bin
cygwin.bat
cygwin.ico
dev
etc
home
[etc ...]

If it matters, this was on XP.

- Barry

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