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

RE: Completion problems on cygwin when nocaseglob is set



Completion fails with "mount -c /" and "setopt nocaseglob" and "autoload
-U compinit" and "autoload compinit".
It works with the more usual "mount -c /cygdrive".

If I start with the working "mount -c /cygdrive" I can repro the problem
as follows:

C:\>zsh -f
$P$Gmount
C:\cygwin\bin on /usr/bin type system (binmode)
C:\cygwin\lib on /usr/lib type system (binmode)
C:\cygwin on / type system (binmode)
b: on /cygdrive/b type system (binmode,noumount)
c: on /cygdrive/c type system (binmode,noumount)
d: on /cygdrive/d type system (binmode,noumount)
e: on /cygdrive/e type system (binmode,noumount)
r: on /cygdrive/r type system (binmode,noumount)
v: on /cygdrive/v type system (binmode,noumount)
$P$G
$P$Gsetopt nocaseglob
$P$Gautoload -U compinit
$P$Gcompinit
$P$G
$P$Gls /cygdrive/c/<TAB>       # this works
$P$G
$P$Gmount -c /
$P$G
$P$Gls /c/<TAB>                # this fails


At this stage "ls /c" lists the files in c:\, but completion fails when
I "ls /c/<TAB>".
The problem seems specific to absolute paths. If I "cd /c" I can then
complete files and folders relative to "/c".


My mount table is now as follows:

$P$Gmount
C:\cygwin\bin on /usr/bin type system (binmode)
C:\cygwin\lib on /usr/lib type system (binmode)
C:\cygwin on / type system (binmode)
b: on /b type system (binmode,noumount)
c: on /c type system (binmode,noumount)
d: on /d type system (binmode,noumount)
e: on /e type system (binmode,noumount)
r: on /r type system (binmode,noumount)
v: on /v type system (binmode,noumount)

Thanks,

    --- John.

-----Original Message-----
From: Peter Stephenson [mailto:pws@xxxxxxx] 
Sent: 22 October 2007 10:35
To: zsh-users@xxxxxxxxxx
Subject: Re: Completion problems on cygwin when nocaseglob is set

On Sat, 20 Oct 2007 13:30:02 +0100
"John Cooper" <john.cooper@xxxxxxxxxxxxx> wrote:
> Completion also fails if I use `cd /c/<TAB>' after I've `setopt
> nocaseglob' and works if I `setopt caseglob'.

Are you saying all completion fails with "mount -c /" and "setopt
nocaseglob"
regardless of anything else?  I can't get this to happen.  Is it
specific
to this case, or does the usual "mount -c /cygdrive" show it too?  Is it
specific to absolute paths?  (In short, I'm likely to need a lot more
help.)

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