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: List-Subscribe: List-Archive: List-Post: List-Help: , 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 Reply-To: Andrey Repin Message-ID: <923049647.20130716014645@mtu-net.ru> To: Corinna Vinschen 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 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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