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

RE: Completion problems on cygwin when nocaseglob is set



Setting the fake-files zstyle doesn't help.

"print /*" does not include "/c" after I "mount -c /" (I don't know
whether it should?). 
If I "mount -c /cygdrive" then "print /*" includes "/cygdrive" (and
completion works), and "print /cygdrive/*" lists all my mounted drives.
If I "mount -c /m" then "print /*" includes "/m" (and completion works).

It's only when I "mount -c /" that the problem occurs.

However, with zsh 4.2.6 (and an earlier version of cygwin) on WinXP,
"print /*" also does not include "/c", but completion works here.

    --- John.


-----Original Message-----
From: Peter Stephenson [mailto:pws@xxxxxxx] 
Sent: 23 October 2007 10:12
To: Zsh Users
Subject: Re: Completion problems on cygwin when nocaseglob is set

On Mon, 22 Oct 2007 14:13:38 +0100
"John Cooper" <John.Cooper@xxxxxxxxxx> wrote:
> I've attached the output from ^x? in the failing case.

I think the problem is somewhere in the utility compfiles.  Given a path
/
and a PREFIX c it should come up with a list of files at least including
"c", but it doesn't.  compfiles is incredibly obscure, but somewhere in
there it's doing globbing.

Does "print /*"  show everything you would expect?

Does setting
  zstyle ':completion:*' fake-files '/:c'
work around the problem?

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