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 12077
- From: Peter Stephenson <pws@xxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxxxxx>
- Subject: Re: Completion problems on cygwin when nocaseglob is set
- Date: Mon, 22 Oct 2007 12:31:28 +0100
- In-reply-to: <DD74FBB8EE28D441903D56487861CD9D224E86E7@xxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Organization: CSR
- References: <DD74FBB8EE28D441903D56487861CD9D223A0DF0@xxxxxxxxxxxxxxxxxxxxxx> <20a807210710200509t43730713oa909fce4e0a57940@xxxxxxxxxxxxxx> <DD74FBB8EE28D441903D56487861CD9D223A0DF8@xxxxxxxxxxxxxxxxxxxxxx> <20071022103452.6c0580c6@news01> <DD74FBB8EE28D441903D56487861CD9D224E86E7@xxxxxxxxxxxxxxxxxxxxxx>
On Mon, 22 Oct 2007 12:10:04 +0100
"John Cooper" <John.Cooper@xxxxxxxxxx> wrote:
> Completion fails with "mount -c /" and "setopt nocaseglob" and "autoload
> -U compinit" and "autoload compinit".
> It works with the more usual "mount -c /cygdrive".
I still can't get this to happen. Do you have MULTIBYTE_SUPPORT in
config.h? Does the following patch (which shouldn't be necessary in any
case) make any difference? Could you send the output of ^x?
(_complete_debug) in the failing case?
Index: Src/pattern.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/pattern.c,v
retrieving revision 1.40
diff -u -r1.40 pattern.c
--- Src/pattern.c 27 Jul 2007 21:51:33 -0000 1.40
+++ Src/pattern.c 22 Oct 2007 11:26:36 -0000
@@ -512,7 +512,7 @@
if (!(patflags & PAT_ANY)) {
/* Look for a really pure string, with no tokens at all. */
if (!patglobflags
-#ifdef __CYGWIN__
+#if 0 /* def __CYGWIN__ */
/*
* If the OS treats files case-insensitively and we
* are looking at files, we don't need to use pattern
--
Peter Stephenson <pws@xxxxxxx> Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070
Messages sorted by:
Reverse Date,
Date,
Thread,
Author