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: case sensitivity on Windows 7 Enterprise with NTFS drive


On Nov 18 13:59, Matthias Herz wrote:
> Dear Cygwin Team,
> 
> on my cygwin installation I have problems with case sensitivity although I
> did everything described here:
> https://cygwin.com/cygwin-ug-net/using-specialnames.html#pathnames-casesens=
> 
> I really need case sentitivity since I would like to use OpenFOAM (c++ cfd
> library) inside cygwin and OpenFOAM has a bunch of files like scalar.H and
> Scalar.H.
> 
> The minimal example for my problem is:
> >mkdir test1
> >touch test1/file.txt
> >touch test1/File.txt
> 
> This gives me
> test1
> |-- file.txt
> |-- File.txt
> 
> This means touch is somehow case sensitive but
> >cp -r test1 test2
> fails with the message:
> >cp: cannot create regular file /test2/file.txt: File exists

Works for me, I just tested it on a local NTFS.  Is the file tree on
some remote FS by any chance?  If so, what Fs is it?  Some FSes are
known to have (not so) funny bugs when deviating from Windows defaults.
Or, was the CWD set the same way when calling mkdir vs. when calling cp?
If you use Windows path rather than POSIX paths, case sensitivity won't
work since WIndows paths ar handled with Windows default assumptions.

Bottom line is, I *know* it works, and it does so since Cygwin 1.7.1.
There must be some quirk in either your FS or in your path handling.


HTH,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

Attachment: signature.asc
Description: PGP signature


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