This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Cygwin 1.7 on win 2008 wierd behaviour with .sys files
- From: Corinna Vinschen <corinna-cygwin at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Thu, 19 Nov 2009 09:19:05 +0100
- Subject: Re: Cygwin 1.7 on win 2008 wierd behaviour with .sys files
- References: <ff3ba4e90911182240i4bda0b51oc68db724c21d1b55@mail.gmail.com> <ff3ba4e90911182244n1ec72b0bgf93285666f6fecd7@mail.gmail.com>
- Reply-to: 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