Re: [OT] strange interaction between open and cwd

2010-05-04 Thread Gregory Ewing
Charles wrote: In the OP's case, references to the directory have been removed from the file system, but his process still has the current working directory reference to it, so it has not actually been deleted. When he opens ../abc.txt, the OS searches the current directory for .. and finds

Re: [OT] strange interaction between open and cwd

2010-05-04 Thread Charles
Gregory Ewing greg.ew...@canterbury.ac.nz wrote in message news:84a1mcffn...@mid.individual.net... Charles wrote: In the OP's case, references to the directory have been removed from the file system, but his process still has the current working directory reference to it, so it has not

Re: [OT] strange interaction between open and cwd

2010-05-04 Thread Nobody
On Tue, 04 May 2010 23:02:29 +1000, Charles wrote: I am by no means an expert in this area, but what I think happens (and I may well be wrong) is that the directory is deleted on the file system. The link from the parent is removed, and the parent's link count is decremented, as you observed,

Re: [OT] strange interaction between open and cwd

2010-05-04 Thread Baz Walter
On 04/05/10 03:25, Grant Edwards wrote: On 2010-05-04, Charlesc.sand...@deletethis.bom.gov.au wrote: I don't see how it's inelegant at all. Perhaps it's counter-intuitive if you don't understand how a Unix filesystem works, but the underlying filesystem model is very simple, regular, and

Re: [OT] strange interaction between open and cwd

2010-05-03 Thread Charles
Grant Edwards inva...@invalid.invalid wrote in message news:hrn3qn$nh...@reader1.panix.com... On 2010-05-03, Chris Rebert c...@rebertia.com wrote: open(path) - IOError: [Errno 2] No such file or directory i think that if the first of these seemingly impossible requests fails, it is

Re: [OT] strange interaction between open and cwd

2010-05-03 Thread Grant Edwards
On 2010-05-04, Charles c.sand...@deletethis.bom.gov.au wrote: I don't see how it's inelegant at all. Perhaps it's counter-intuitive if you don't understand how a Unix filesystem works, but the underlying filesystem model is very simple, regular, and elegant. but probably makes some bit of

Re: [OT] strange interaction between open and cwd

2010-05-03 Thread Mel
Grant Edwards wrote: I guess I've been using Unix for too long (almost 30 years). I don't think I was consciously aware of a one file, one name paradigm. Is that a characteristic of Dos, Windows or Mac filesystems? Older and simpler filesystems used to combine the naming with the space