delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/11/19/03:20:35

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Thu, 19 Nov 2009 09:19:05 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Cygwin 1.7 on win 2008 wierd behaviour with .sys files
Message-ID: <20091119081905.GA29173@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <ff3ba4e90911182240i4bda0b51oc68db724c21d1b55 AT mail DOT gmail DOT com> <ff3ba4e90911182244n1ec72b0bgf93285666f6fecd7 AT mail DOT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <ff3ba4e90911182244n1ec72b0bgf93285666f6fecd7@mail.gmail.com>
User-Agent: Mutt/1.5.20 (2009-06-14)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Nov 19 12:14, Hrishikesh Date wrote:
> I installed cygwin beta on win2008 R2 machine.
> Having a strange problem when copying files with 2 DOTs on
> 
> $ touch a.sys.exe
> $ cp a.sys.exe a.sys
> cp: cannot create regular file `a.sys': File exists
> 
> I double checked and there is no file named a.sys.

THat's not really strange.  It's the special handling of files with the
.exe suffix.  Under Cygwin 1.7, foo and foo.exe are treated as the same
file.  Already under older Cygwin versions, if you looked for a file
"foo", and there was only a file "foo.exe", the file was found, like
this:

  $ ls -l f*
  -rwxr-xr-x 1 corinna vinschen 19931 2009-11-19 09:15 foo.exe
  $ ls -l foo
  -rwxr-xr-x 1 corinna vinschen 19931 2009-11-19 09:15 foo

In Cygwin 1.7, it's even more treated as the same file.  If you
try to open "foo" for reading or writing, you will actually open
"foo.exe" if it exists.  You should not try to create a file foo
and a file foo.exe side by side in the same dir.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019