From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20455 invoked by alias); 12 Jul 2013 20:09:57 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 20377 invoked by uid 89); 12 Jul 2013 20:09:57 -0000 X-Spam-SWARE-Status: No, score=-0.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_HOSTKARMA_NO,RDNS_NONE autolearn=no version=3.3.1 Received: from Unknown (HELO USA7109MR006.ACS-INC.COM) (63.87.171.175) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Fri, 12 Jul 2013 20:09:56 +0000 Received: from usa7109ht001.na.xerox.net ([13.41.230.31]) by USA7109MR006.ACS-INC.COM with ESMTP/TLS/AES128-SHA; 12 Jul 2013 15:09:47 -0500 Received: from USA7109MB022.na.xerox.net ([169.254.6.235]) by USA7109HT001.na.xerox.net ([13.41.230.31]) with mapi id 14.02.0309.002; Fri, 12 Jul 2013 15:09:46 -0500 From: "Nellis, Kenneth" To: "cygwin@cygwin.com" Subject: RE: Cygwin and x: directory Date: Fri, 12 Jul 2013 20:45:00 -0000 Message-ID: <0D835E9B9CD07F40A48423F80D3B5A7021D8E0FC@USA7109MB022.na.xerox.net> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-SW-Source: 2013-07/txt/msg00273.txt.bz2 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 $ It would seem that touch and rm are following different rules regarding how files may be named. --Ken Nellis -- 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