Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Completion problems on cygwin when nocaseglob is set



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