zsh-users
 help / color / mirror / code / Atom feed
From: John Cooper <john.cooper@eu.citrix.com>
To: "'zsh-users@sunsite.dk'" <zsh-users@sunsite.dk>
Subject: Unexpected behavior with case insensitive completion under cygwin
Date: Wed, 24 Mar 2004 10:52:00 -0000	[thread overview]
Message-ID: <B5885AA769039C49BD9295955CB2E0E40589798A@lonpexch501.ctxuk.citr ix.com> (raw)

[-- 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.


             reply	other threads:[~2004-03-24 12:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-24 10:52 John Cooper [this message]
     [not found] <B5885AA769039C49BD9295955CB2E0E40589798A@lonpexch501.ctxuk.citrix.com>
2004-03-24 12:53 ` Peter Stephenson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='B5885AA769039C49BD9295955CB2E0E40589798A@lonpexch501.ctxuk.citr ix.com' \
    --to=john.cooper@eu.citrix.com \
    --cc=zsh-users@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).