Web lists-archives.com

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
the process).

+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

Waldorf MIDI Implementation & additional documentation:

Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple