Ben Schmidt wrote:

> > I know 
> > that windows file systems are case-insensitive, but I'm trying to 
> > emulate a unix environment, so I want to be able to turn off this 
> > behavior and have file globbing match in a case-sensitive way.
> 
> It makes sense to be able to change it, too, as although the *default*
> Windows file systems are case insensitive, it is possible to connect to
> a Unix share or something which is case sensitive. (At least, I'm pretty
> sure it's possible...)

You will get a mix of MS-Windows and Unix semantics, which means
trouble.  As in: you can read two files which differ only in case, but
you sometimes can't write them.

> > I have not been able to find any setting which will allow this to 
> > happen.  The way I have been able to work-around this is to replace
> > CASE_INSENSITIVE_FILENAME in src/os_unix.h with some garbage symbol and 
> > then recompile. 
> 
> Yeah, I think that's the only way to do it at the moment.
> 
> > Can you add a runtime-settable option of some sort to allow controlling 
> > this behavior?  It's better for this to be runtime-settable rather than 
> > compiled-in to match the behavior of other tools.  For example, 
> > shopt [-s|-u] nocaseglob can toggle the corresponding behavior in bash.
> 
> I'm not sure how easy this would be, given that it's done by the
> preprocessor at the moment. It shouldn't be too hard, though, I suppose.
> I don't know whether Bram would welcome such a change. Do you have the
> skills to make a patch to do this yourself? I suggest asking Bram if he
> would consider such a change, and if he would, put together a patch.
> It'd take a few months to filter into the official Vim sources.

I think it's a lot of trouble to implement this.  And it probably means
yet another option that can have an unexpected value.  The gain is
small, I doubt more than a few times case matters.

You can compile Vim under cygwin and then it should have Unix semantics.
So you can pick which binary to run to get different behavior.  Probably
a huge switch for such a small difference.

-- 
You had connectors?  Eeee, when I were a lad we 'ad to carry the
bits between the computer and the terminal with a spoon...

 /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui