On 14.03.2012 19:28, Christian Brabandt wrote:
On Wed, March 14, 2012 18:09, Timothy Madden wrote:
And by the way, :lcd or :cd do not return the right case in path names
either.

I am really wondering, what the right case is on Windows and what do
you need it for?

The Windows file system (NTFS) may be case-insensitive, but it is still case-preserving. File names are written and stored in the file system preserving the letters' case at all times. You can even rename a file from lower-case to upper-case, and Windows will always list the file as upper-case than.

I need this to compare for identity directory names that I received from different sources (one is from the user who has edited &runtimepath, and the other is from expanding ~/.vim/ with vim script commands).

And before you say I could make a case-insensitive string compare, I also want my script to work under Unix/Linux or with a filesystem different than NTFS, that is case-sensitive. And for such a file system, a case-insensitive string compare would be wrong.

So what do I do to correctly compare file names that may reside on either case-sensitive or case-insensitive file systems ?

Thank you,
Timothy Madden




--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to