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]

likely stupid question but name conflicts with foo and foo.exe?


Hi,
I'm trying to copy of bunch of files from debian over to windoze using scp -r.
This was working fine except for one error where it complains foo is
not a directory
and apparently I have foo and foo.exe in one dir but foo is a directory.

I think this replicates the problem. It seems that ".exe" is confused
with no extention.
Is this true and what can I do or am I just doing something really
stupid? Thanks.

$ mkdir acrap

mmarchywka@phlulap01 /cygdrive/c/old/download/cdarchive
$ echo > x1

mmarchywka@phlulap01 /cygdrive/c/old/download/cdarchive
$ echo > x1.exe

mmarchywka@phlulap01 /cygdrive/c/old/download/cdarchive
$ cp x1* acrap
cp: will not overwrite just-created `acrap/x1.exe' with `x1.exe'

mmarchywka@phlulap01 /cygdrive/c/old/download/cdarchive
$ ls acrap
x1.exe

mmarchywka@phlulap01 /cygdrive/c/old/download/cdarchive


$ mv x1.exe x1.fexe

mmarchywka@phlulap01 /cygdrive/c/old/download/cdarchive
$ cp x1* acrap
cp: cannot create regular file `acrap/x1': File exists

mmarchywka@phlulap01 /cygdrive/c/old/download/cdarchive
$ ls -al acrap
total 6
drwxr-xr-x+ 1 mmarchywka None    0 2010-09-07 08:56 .
drwxr-xr-x+ 1 mmarchywka None 4096 2010-09-07 08:56 ..
-rw-r--r--+ 1 mmarchywka None    1 2010-09-07 08:51 x1.exe
-rw-r--r--+ 1 mmarchywka None    1 2010-09-07 08:56 x1.fexe

mmarchywka@phlulap01 /cygdrive/c/old/download/cdarchive
$ rm acrap/*

mmarchywka@phlulap01 /cygdrive/c/old/download/cdarchive
$ cp x1* acrap

mmarchywka@phlulap01 /cygdrive/c/old/download/cdarchive
$

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