Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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: From: "Buchbinder, Barry (NIH/NIAID)" 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 Content-Type: text/plain 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/