delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/01/16/08:50:47

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:subject:to:references:reply-to:from:message-id
:date:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=qGg4qli+J0C66Qi4
B408LR8Iwm4zyvtr3Hbwyii73TaA4ht9LxO+vx7MoGE0ApZ1MGgcnDGfu3WpA2uf
XoPH1kqowej9bl+n1VWk+Oh2oSeFDzbrk6wLROnsWJKSyhhJx73cwHjhyuUBv635
jcfh3tKgOBWinT63YvDMIReplXI=
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:subject:to:references:reply-to:from:message-id
:date:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=NYW4dNmJom8JwOvsoPz+CT
77p/Q=; b=AJtkbzoPzOlou9ePqBWvmKeV0hxvafYPG2U8+1SJnmNDgaTqaBPqXc
AY2Yd7xdvEDjoYjnkyJDp9tkPcwUApEVQgi85ROgIYDc66AOIi8YL77zDS6zBo+R
3dOwzxZaTfGp5ku6yL9Fni8paSEPntBqiRnHDaiu6SetiY2oPtqMI=
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.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=Cook, cook, Hx-languages-length:1350, platforms
X-HELO: mail-io0-f171.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:reply-to:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=MojRWJ90PycgWngvkC4YcgM+0f+udRu1cUjbCPRJkU0=; b=YsJEXH3lqm6IPlR4NEQJNJYNT3WAKfToS1OJBN1Pcb43woTvBB2jFkz45DL7m/Rewk W2jc3ekJgDpiSU8S5T0ZYEAUCBi87A598PydkLzhkvPSSRRv+Vs3ctRzddJhBKuSDoqk kOFAm8rqF0ZZg/qypmgqGUOlCtzqLE1n+M0j8dMJWu6kNExuS+a4wfrktwURD0HX6HXA 30VYvBUIxbTUTQz/XunmEtCOxKiI6jH61YUUPeWVOZVqvAXR6b9fBdZjevAV6VRNFmZs DAds/+KJjSkd+BF+2llt6LDAn0nfiIET9F2zGzhwaRFICeu5OMPVx+yIiXF1Coj/mjZI /e7w==
X-Gm-Message-State: AKwxytcqKij+ZeasinlOqQOHy8tGqMoiAof54G5W1ynI6+w1Bk4uYpEP zrxKTfbVqOJSD4uKmBw0BFfnrA==
X-Google-Smtp-Source: ACJfBouuDf5O2oDIb5OQtRId4CEdRRaeoBt5UH9nygVttBm0v7+NNs34T8KM72a1vMTgknvO03OOFw==
X-Received: by 10.107.197.68 with SMTP id v65mr14907611iof.76.1516110633280; Tue, 16 Jan 2018 05:50:33 -0800 (PST)
Subject: Re: deleted current directory behaviour
To: cygwin AT cygwin DOT com
References: <20180116041301 DOT trp2qwc2qexos7kp AT mars DOT tony DOT develop-help DOT com>
Reply-To: cygwin AT cygwin DOT com
From: cyg Simple <cygsimple AT gmail DOT com>
Message-ID: <6eea74ee-c694-f70b-9d60-8105502f4aaf@gmail.com>
Date: Tue, 16 Jan 2018 08:50:30 -0500
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2
MIME-Version: 1.0
In-Reply-To: <20180116041301.trp2qwc2qexos7kp@mars.tony.develop-help.com>
X-IsSubscribed: yes

On 1/15/2018 11:13 PM, Tony Cook wrote:
> 
> tony AT saturn ~/dev/perl/git
> $ cc -o132648.exe 132648.c
> 
> tony AT saturn ~/dev/perl/git
> $ ./132648
> /home/tony/dev/perl/git/foo
> 
> On Linux that program outputs:
> 
> tony AT mars:.../newlib/git$ ./132648
> getcwd: No such file or directory
> 
> Is that inconsistency with other platforms intentional?
> 

Not intentional as much as it is unfortunate because of the nature of ...

> If it isn't, are there any plans to make it consistent with
> Linux/other POSIX-like systems?
> 
> Note: I'm not requesting this be fixed.  I have perl test code that
> needs to be skip the test with the current behaviour, or allow
> execution if the behaviour is made more consistent.
> 
> Thanks,
> Tony
> 
> If it matters:
> 
> tony AT saturn ~/dev/perl/git
> $ uname -a
> CYGWIN_NT-6.1-WOW saturn 2.9.0(0.318/5/3) 2017-09-12 10:41 i686 Cygwin
> 
> * Win32 doesn't allow removing the current directory:
>   C:\Users\tony>.\132648
>   rmdir: Permission denied
> 

the Windows OS.  Cygwin has an array of removed file structure items
that could not be removed because of the nature of the OS.  The file
structure still exists until it is closed.  Perhaps the Cygwin's version
of getcwd() could check the list of items waiting to be removed but I'll
leave that to someone else to say.

-- 
cyg Simple

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