This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

cd /proc/garbage


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
$ cd /proc/self/banana
$ ls
ls: .: Not a directory
$ cd /proc/self/fd/banana
$ ls
ls: .: Not a directory

However it only works one level deep:

$ cd /proc/banana/banana
bash: cd: /proc/banana/banana: No such file or directory

Lev

Attachment: cygcheck.out
Description: Text document

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]