Re: deleted current directory behaviour
- Date: Thu, 18 Jan 2018 19:19:12 +0100
- From: Achim Gratz <Stromeko@xxxxxxxx>
- Subject: Re: deleted current directory behaviour
Tony Cook writes:
> Currently cygwin emulates* Linux (and most other POSIXish systems that
> I'm aware of) by allowing the current directory to be removed:
> Is that inconsistency with other platforms intentional?
It's one of those non-POSIXy things that can be detected if you look
closely enough. The directory must still exist since Windows considers
it an open file, it only really gets deleted when the process exits.
> If it isn't, are there any plans to make it consistent with
> Linux/other POSIX-like systems?
I don't know if that's even possible (i.e. whether you can make getcwd()
return a different string than the now deleted but still existing cwd of
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+
Waldorf MIDI Implementation & additional documentation:
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple