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 From: "Dave Korn" To: Subject: RE: cd /proc/garbage Date: Thu, 14 Apr 2005 12:01:06 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit In-Reply-To: Message-ID: X-OriginalArrivalTime: 14 Apr 2005 11:01:09.0513 (UTC) FILETIME=[438E0F90:01C540E1] ----Original Message---- >From: Lev S Bishop >Sent: 14 April 2005 11:19 > I looked and this doesn't seem to have been mentioned in the archives. > You can cd to any random subdirectory of a directory in the /proc > filesystem, irrespective of whether it exists. Examples: > > $ cd /proc/banana > $ ls > ls: .: Not a directory Yep, it's a side effect of the way the virtual filesystem for /proc works. If it ever mattered to anyone, it would most likely be a simple enough patch to the cwd code in the cygwin dll to make it check the directory by trying it out before it permitted cwd to succeed, but I don't know how much performance impact it might conceivably have. 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/