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

