delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/07/15/17:50:35

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:date:from:reply-to:message-id:to:subject
:in-reply-to:references:mime-version:content-type
:content-transfer-encoding; q=dns; s=default; b=PxN/EDBhjGmox/H0
JHeWKY43Uz1OZtGJeWWcscyaG55v+pLlAls9YdwLpuMB/AB0SEID7r9tpy3QCCjc
fedpx6hwP/K0solMxkEsAs5Xy9LJKxMmpzLbc/9mYLHJ4D5bOoMpJpUvGoZ0/J4W
xN6ofXwndXa/VU9m8jcrpeoIOpI=
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:date:from:reply-to:message-id:to:subject
:in-reply-to:references:mime-version:content-type
:content-transfer-encoding; s=default; bh=N0n5f+P7Xei5NNVgWEunKp
+0S4k=; b=BtFHupybt+r4NarlGMx4NNzrRHfKC/4fakfRGpxsQkROUoiPolja1t
guyUdea01pdyl05Vlhfae1uQSzhzc1xbHqqz2yphJi7vlfozXMmI1ztTE+prGADq
Ykt0AgXARtPPm5tJNGL94re+I85YJ+6cg6jJoG2ZMgDawum+8M4cE=
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
X-Spam-SWARE-Status: No, score=2.5 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KAM_THEBAT,KHOP_THREADED,RDNS_NONE,SPF_SOFTFAIL autolearn=no version=3.3.1
Date: Tue, 16 Jul 2013 01:46:45 +0400
From: Andrey Repin <anrdaemon AT freemail DOT ru>
Reply-To: Andrey Repin <cygwin AT cygwin DOT com>
Message-ID: <923049647.20130716014645@mtu-net.ru>
To: Corinna Vinschen <cygwin AT cygwin DOT com>
Subject: Re: Cygwin and x: directory
In-Reply-To: <20130715104018.GB18483@calimero.vinschen.de>
References: <0D835E9B9CD07F40A48423F80D3B5A7021D8E0FC AT USA7109MB022 DOT na DOT xerox DOT net> <20130715104018 DOT GB18483 AT calimero DOT vinschen DOT de>
MIME-Version: 1.0
X-IsSubscribed: yes

Greetings, Corinna Vinschen!

> On Jul 12 20:09, Nellis, Kenneth wrote:
>> On 07/12/2013 08:42 AM, Mikko Rapeli wrote:
>> >
>> > Hi Cygwin and git developers,
>> >
>> > Does following scenario show signs of bugs in Cygwin and/or git?
>> >
>> > # setup git repo
>> > $ cd /tmp
>> > $ mkdir foo && cd foo
>> > $ git init
>> >
>> > # create x: directory
>> > $ mkdir x:
>> > $ ls
>> > x:
>> 
>> IMHO, this makes an interesting problem (unrelated to git):
>> Shell script prompts user for file name.
>> User enters "x:".
>> Script proceeds as follows:
>> $ mkdir tmpdir
>> $ touch tmpdir/x:
>> $ # useful work done here
>> $ rm -r tmpdir
>> rm: cannot remove `tmpdir/x:': No such file or directory
>> rm: cannot remove `tmpdir': Directory not empty
>> $

> That's a problem of how recursive rm works.  It chdir's into 
> the subdirs it's working on and then calls "x:" which is recognized
> as drive prefix of a windows path.

Or a file stream with empty name.
Which isn't allowed either, AFAIK.

> `rm ./x:' works as expected.

>> It would seem that touch and rm are following different
>> rules regarding how files may be named.

> No.


> Corinna



--
WBR,
Andrey Repin (anrdaemon AT freemail DOT ru) 15.07.2013, <23:42>

Sorry for my terrible english...


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