Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Completion problem when `nocaseglob' is set
- X-seq: zsh-users 13403
- From: "Mikael Magnusson" <mikachu@xxxxxxxxx>
- To: "John Cooper" <John.Cooper@xxxxxxxxxxxxx>
- Subject: Re: Completion problem when `nocaseglob' is set
- Date: Tue, 28 Oct 2008 19:37:16 +0100
- Cc: zsh-users@xxxxxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=9spZ0FVZgbsD5XauOJApAf4jOoPk8GtPMau1skXika8=; b=ERj4W8hS3jlGAPWy36DThl932cgPS30fInhRj6C3GljHqrOBRJL494S3pm8bYaY690 60dPKLcJocP6ATYR/5V1W43zVq0E6FuF6Fes3rRwW7x9Dajf4IAvUbNihcOlshNokxZk nH5lE9bIMCFnVvJFsuHSQAdUVLmfIwrVpoqp0=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=OXbiEYPrfvBRwQDNHvIKRpq0h4n0GtHfPd2gy65FgwFekm+6CGzU6znGq7MVGGa7Nf uM6WFiOrg6Im5owAp3PvlqfYcB8biUzPaBqNlgo8hGnRY/FiH3/4GvlFVhlOf0caOsey +X1gFzrO8ymhU+k2Pez6Ifj+8twrr+m9NdkNc=
- In-reply-to: <DD74FBB8EE28D441903D56487861CD9D3883994B@xxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <DD74FBB8EE28D441903D56487861CD9D3883994B@xxxxxxxxxxxxxxxxxxxxxx>
2008/10/28 John Cooper <John.Cooper@xxxxxxxxxxxxx>:
> I've just upgraded to zsh 4.3.4 (via Cygwin) and have found that
> completion in the root C: drive no longer works when I `setopt
> nocaseglob'. It was working fine with my previous version of zsh
> 4.<something> that I installed a couple of years ago, but I don't recall
> the exact version.
>
> After running `zsh -f', the following both work fine and list the files
> in the root of my C drive:
> $ ls c:/<TAB> # lists files as expected
> $ ls /c/<TAB> # lists files as expected
>
> (btw, I have the cygwin drive prefix set to "/" instead of
> "/cygdrive")
>
> The problem starts when I set the `nocaseglob' option:
> $ setopt nocaseglob
> $ ls c:/<TAB> # no files listed
> $ ls /c/<TAB> # no files listed
>
> A couple of years ago I experienced the same problem and, after getting
> help from this list, I resolved it by doing:
> $ mount -c /cygdrive
> $ /usr/bin/mkdir /c
> $ /usr/bin/mount -c /
>
> Apparently, creating the /c directory allowed it to become visible to
> the globbing system (it's listed in `print /*'), although I don't
> understand why this is only needed when `nocaseglob' is in effect.
>
> Anyway, with zsh 4.3.4, the above is now only a partial fix:
>
> $ ls /c/<TAB> # lists files as expected
> $ ls c:/<TAB> # no files listed
>
> Does anyone know how I can get completion to work using c:/<TAB> with
> zsh 4.3.4 with `nocaseglob' enabled?
>
> I've tried the following, but to no avail:
> zstyle ':completion:*:paths' accept-exact 'c:'
> zstyle ':completion:*' fake-files '/:c'
This is a bug that was fixed in 4.3.5,
2007-10-23 Peter Stephenson <pws@xxxxxxx>
* users/12087: Src/glob.c: fix a case where we doing globbing
unncessarily to find files case-insensitively in Cygwin.
[sic]
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author