This is the mail archive of the
mailing list for the Cygwin project.
RE: Cygwin and x: directory
- From: "Nellis, Kenneth" <Kenneth dot Nellis at xerox dot com>
- To: "cygwin at cygwin dot com" <cygwin at cygwin dot com>
- Date: Fri, 12 Jul 2013 20:09:45 +0000
- Subject: RE: Cygwin and x: directory
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
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.
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple