X-Recipient: archive-cygwin@delorie.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:mime-version:in-reply-to:references:from:date
	:message-id:subject:to:content-type; q=dns; s=default; b=Vud9CT+
	NvLZishHMNIBXMtpzWgaDvO9be8jrOp54daZU6TjIwf2lkXMxkHkE87bcl6AomdW
	gXlH5HX8Xa6KIHXL4i4swXzWF/IFLn2WgNtWCLKVACxfGBX7ibYtCET/CfL+6PA/
	RTv6rgo9t/011RlC20yox+uESZIlnIYLCCJQ=
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:mime-version:in-reply-to:references:from:date
	:message-id:subject:to:content-type; s=default; bh=9WG+IsLTm6M84
	SLuWr5iqsq31Sg=; b=NurABjfi93N2pNne7wZK3x6G9xYOh75HyADd6LG4fIqPt
	r5tQ2Awwa20dHi3FVEuQmFtYnUesejROQeDmapVxT1qKB7MtjA3s9lteur+74+P7
	DK4nciGhn2q6XWYGDHNeDf4MLLokcEj2XkpRtI8BR5SOSP5twOZ9XykNdyDctg=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
X-Spam-SWARE-Status: No, score=4.3 required=5.0 tests=AWL,BAYES_50,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,RDNS_NONE,SPF_PASS autolearn=ham version=3.3.1
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;        d=google.com; s=20120113;        h=mime-version:in-reply-to:references:from:date:message-id:subject:to         :content-type:x-gm-message-state;        bh=vmT+2eOX+Ck1rhroMIDj8v0q1qiyqpfXG3wVzdR7kS8=;        b=DEOTmi8nHjq2/+Lzgjwo3UqeM5Kbot2QMejvs8LSzAyrP1KcP9/4dNpknvZ030SdtQ         4hxz14luXSP4SIuEzOYrOd9iKzTxHp+YdVVrOJZZVi0mCCPXUch4J0OTyPaaT4BAhWTq         LyhlUaWWMidM3uScwynp/OAgWVbbJsL3c/bKqUrTg5KtEqaIgLQhOcDGBKQer/0PFnTd         fBjGVqOE0pErwKzgIiCtWZDZZQAopzEjW4BlIsZb4z/zkby9aSNKa0E8bBG1Q5WdcEiq         x2DBzigVM98vkUO+RNWoIlPf5CJEontvi6SHOWbalKbVvj6wEwIshx4NO1DtQ7O2IE84         r2FQ==
X-Received: by 10.194.174.38 with SMTP id bp6mr32173189wjc.83.1373886069971; Mon, 15 Jul 2013 04:01:09 -0700 (PDT)
MIME-Version: 1.0
In-Reply-To: <20130715104018.GB18483@calimero.vinschen.de>
References: <0D835E9B9CD07F40A48423F80D3B5A7021D8E0FC@USA7109MB022.na.xerox.net> <20130715104018.GB18483@calimero.vinschen.de>
From: Adam Dinwoodie <adam@dinwoodie.org>
Date: Mon, 15 Jul 2013 12:00:29 +0100
Message-ID: <CA+kUOans72pM2FUE9v=XNK6XBkyD1JMPsy9=5Pi5kesW155wyA@mail.gmail.com>
Subject: Re: Cygwin and x: directory
To: cygwin@cygwin.com
Content-Type: text/plain; charset=ISO-8859-1
X-Gm-Message-State: ALoCoQnUpyRAfMGyWyVl1j1MF5Ci8dyFAnxXDeLl0Ad53qdLEadOl+vCpT1ZBFfwiNNIO4EFiMdf

On 15 July 2013 11:40, Corinna Vinschen wrote:
> On Jul 12 20:09, Nellis, Kenneth wrote:
>> 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.  `rm ./x:' works as expected.

Does that mean this is a bug in Cygwin rm that ought to be fixed
(subject to SHTDI), or that it's a limitation of Cygwin rm for which
the cure looks to be worse than the symptoms?

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

