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: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 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=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 AT USA7109MB022 DOT na DOT xerox DOT net> <20130715104018 DOT GB18483 AT calimero DOT vinschen DOT de> From: Adam Dinwoodie Date: Mon, 15 Jul 2013 12:00:29 +0100 Message-ID: Subject: Re: Cygwin and x: directory To: cygwin AT cygwin DOT 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