cd /proc/garbage

Dave Korn dave.korn@artimi.com
Thu Apr 14 11:02:00 GMT 2005


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



More information about the Cygwin mailing list