Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Completion problems on cygwin when nocaseglob is set
- X-seq: zsh-users 12102
- From: "Vin Shelton" <acs@xxxxxxxxxxxxxxxxxxxx>
- To: "Peter Stephenson" <pws@xxxxxxx>
- Subject: Re: Completion problems on cygwin when nocaseglob is set
- Date: Wed, 24 Oct 2007 16:37:48 -0400
- Cc: "Zsh Users" <zsh-users@xxxxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=1dbBY/RKAffVHZgu/23FEnEc8i9xuj3u71gXdgeTrcU=; b=n0z5bliOzre/Tza+rj5MO8Gi4VXn4Vrg0uswIsylYKzcypi1FlqMBRz45Gs6QRNn2aZIxnM9iHJACOT3DP84dTbqsS0XFF38gWMX3pcW3NI1rprzv5znH9lJXIzz4m2bJGtQ/weTqrWVrG7bn5AaOs00Wq4AoI2rAE+192nb4U4=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=n290l7DawAZMcIPCMayfDukHJ8J2nRrHcFUU04Kv4N4uctajY8FeT2I2uLTyYCAsjq75BgGYiUUtr9o5qCoazvRIJ7lQBXibTa/Lv2rcOH78ISsqTMNV2UmTROIMLGWXty3C/2nrQXA1CyUt2LTvGXeXdeQJ+VAM1FwHdgmCIlA=
- In-reply-to: <200710241509.l9OF9Ybg028025@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <DD74FBB8EE28D441903D56487861CD9D223A0DF0@xxxxxxxxxxxxxxxxxxxxxx> <DD74FBB8EE28D441903D56487861CD9D224E8A05@xxxxxxxxxxxxxxxxxxxxxx> <20071023101151.3757a369@news01> <DD74FBB8EE28D441903D56487861CD9D225F6432@xxxxxxxxxxxxxxxxxxxxxx> <200710231156.l9NBuQwA019246@xxxxxxxxxxxxxx> <DD74FBB8EE28D441903D56487861CD9D225F6859@xxxxxxxxxxxxxxxxxxxxxx> <20071023165708.41f29476@news01> <DD74FBB8EE28D441903D56487861CD9D22719439@xxxxxxxxxxxxxxxxxxxxxx> <20a807210710240701w1f83e299k8dfcf6e658adffff@xxxxxxxxxxxxxx> <200710241509.l9OF9Ybg028025@xxxxxxxxxxxxxx>
- Sender: ethersoft@xxxxxxxxx
On 10/24/07, Peter Stephenson <pws@xxxxxxx> wrote:
> "Vin Shelton" wrote:
> > I'm very confused. Running zsh built from the latest CVS sources,
> > here's what I see:
>
> ... even with NO_CASE_GLOB set, completion doesn't match
> case-insensitively unless there's a matcher spec to do it.
>
> Oh dear, I hate it when people are confused about completion because
> that invariably means a hard time.
Thanks for explaining this Peter. As a naive end-user I forget the
complexities of the inter-relationships of the parts. Ideally (IMO),
'setopt nocaseglob' should work for both globbing and completion.
>
> It looks like _path_files is doing the right thing internally (via
> compfiles, which understands glob settings), but it then passes the
> matched string to compadd without the -U flag, which says "sorry mate,
> it's more than my job's worth to match case-insensitively". _path_files
> does most of its file handling itself or via compfiles, but it doesn't
> do the special matching stuff, hence we can't pass -U in that case.
>
> We could make a rule that we use case-insensitive matching with
> NO_CASE_GLOB unless an explicit matcher spec is in force, I suppose, but
> we can't actually have the combined effect of nocaseglob and matchers
> without either some kind of internal rewrite, or editing the matchers
> passed down through _path_files. If the former is acceptable, this is
> fairly straightforward.
If by 'former' you meant that NO_CASE_GLOB works if no explicit
matcher is specified (which looks like what you implemented below),
then I agree.
I applied the patch and verified that my naive test case now works.
Thank you,
Vin
Messages sorted by:
Reverse Date,
Date,
Thread,
Author