case sensitivity on Windows 7 Enterprise with NTFS drive

Corinna Vinschen corinna-cygwin@cygwin.com
Fri Nov 18 15:35:00 GMT 2016


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20161118/5fcad254/attachment.sig>


More information about the Cygwin mailing list