This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Cygwin 1.7 on win 2008 wierd behaviour with .sys files


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]