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 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: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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