zsh-users
 help / color / mirror / code / Atom feed
* Unexpected behavior with case insensitive completion under cygwin
@ 2004-03-24 10:52 John Cooper
  0 siblings, 0 replies; 2+ messages in thread
From: John Cooper @ 2004-03-24 10:52 UTC (permalink / raw)
  To: 'zsh-users@sunsite.dk'

[-- Attachment #1: Type: text/plain, Size: 1093 bytes --]

[I'm using zsh 4.2.0, compiled under a recent cygwin, on WinXP SP1]

Earlier in the week I was experiencing the following problem:

Run `zsh -f' followed by:
$ autoload -U compinit
$ compinit -C
$ ls c:/WIN<tab>    => c:/WINDOWS/
$ ls c:/win<tab>    => doesn't complete, as expected

$ zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}'

$ ls c:/WIN<tab>    => doesn't complete - is this a bug?
$ ls c:/win<tab>    => doesn't complete - is this a bug?

It also no longer completes when using the cygdrive prefix:

$ ls /cygdrive/c/WIN<tab>  => doesn't complete, but it did before the zstyle
command above.

Note however, that it will now complete case-insensitively when completing
relative paths:
$ cd c:/
$ ls WIN<tab>   => WINDOWS/
$ ls win<tab>   => WINDOWS/


I've spent quite a while trying various things, and found this morning that
the following will fix the problem:

$ zstyle ':completion:*:paths' accept-exact true

Now:
$ ls /cygdrive/c/win<tab>  => /cygdrive/c/WINDOWS/
$ ls c:/win<tab>  => c:/WINDOWS/



This is great, but can anyone explain what's going on?

Thanks,

John.


^ permalink raw reply	[flat|nested] 2+ messages in thread
[parent not found: <B5885AA769039C49BD9295955CB2E0E40589798A@lonpexch501.ctxuk.citrix.com>]

end of thread, other threads:[~2004-03-24 12:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-24 10:52 Unexpected behavior with case insensitive completion under cygwin John Cooper
     [not found] <B5885AA769039C49BD9295955CB2E0E40589798A@lonpexch501.ctxuk.citrix.com>
2004-03-24 12:53 ` Peter Stephenson

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).