public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* RE: Cygwin and x: directory
@ 2013-07-12 20:45 Nellis, Kenneth
  2013-07-15 11:13 ` Corinna Vinschen
  0 siblings, 1 reply; 5+ messages in thread
From: Nellis, Kenneth @ 2013-07-12 20:45 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-07-15 21:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-12 20:45 Cygwin and x: directory Nellis, Kenneth
2013-07-15 11:13 ` Corinna Vinschen
2013-07-15 11:20   ` Adam Dinwoodie
2013-07-15 11:41     ` Corinna Vinschen
2013-07-16  3:45   ` Andrey Repin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).