delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/01/18/13:19:40

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:from:to:subject:references:date:in-reply-to
:message-id:mime-version:content-type:content-transfer-encoding;
q=dns; s=default; b=IYDo3YrTWvWKTnk8FEHLyMXJlzn8WZvzW+HeNdObsF6
JAPEKWpcC33nCg4i5tiOGP/qUBpeii2S2eSzI0tfBFJIAWvIlKhOxiMGJAHWdp/6
8SKVrbskzq1Cm08LFKzfMKEKaWIN+rLcc+5ejWimUSPOBvfWhZXntvphonyRb6jQ
=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:from:to:subject:references:date:in-reply-to
:message-id:mime-version:content-type:content-transfer-encoding;
s=default; bh=vnNXYK0WVxCaBlDivkeNW3aJp3c=; b=rvPzXGOwdsUpWWHu6
xqDv6/ycPxhJmgfCqK3jbNuCf0Qi6wd2A1UomZ+9E2CGX6GP7K0SMf4yi7ttVfHX
g00FUDT/H2dS54xmBMLWGHjPiWob4P3mu0iUszs7CVTMCsTsh8eX9sq4iwk3W5Cm
7I5ojw38GeV2KYDw794KNmLPsY=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.2 spammy=posix-like, emulates*, posixish, getcwd
X-HELO: vsmx012.vodafonemail.xion.oxcs.net
From: Achim Gratz <Stromeko AT nexgo DOT de>
To: cygwin AT cygwin DOT com
Subject: Re: deleted current directory behaviour
References: <20180116041301 DOT trp2qwc2qexos7kp AT mars DOT tony DOT develop-help DOT com>
Date: Thu, 18 Jan 2018 19:19:12 +0100
In-Reply-To: <20180116041301.trp2qwc2qexos7kp@mars.tony.develop-help.com> (Tony Cook's message of "Tue, 16 Jan 2018 15:13:02 +1100")
Message-ID: <87wp0fxc67.fsf@Rainer.invalid>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux)
MIME-Version: 1.0
X-VADE-STATUS: LEGIT
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id w0IIJcHm024874

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


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

Waldorf MIDI Implementation & additional documentation:
http://Synth.Stromeko.net/Downloads.html#WaldorfDocs

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


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019