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

PATCH: Re: Use of named directories in completions broken.

Peter Stephenson wrote:

> Some recent change has broken named directories in completions.  It now
> insists on trying to expand it instead.  I use _expand in my list of
> completers to do expansion; removing this seems to fix it, and using
> expand-or-complete instead works OK.

You mean that it expands the named dir, right?

Yes, ahem, I said in a comment above the thin in the patch that I'm not
completely sure about the pattern(s) to use.  The old pattern made it
consider anything with just a tilde in it to be interesting to expand.


Index: Completion/Base/Completer/_expand
RCS file: /cvsroot/zsh/zsh/Completion/Base/Completer/_expand,v
retrieving revision 1.3
diff -u -r1.3 _expand
--- Completion/Base/Completer/_expand	2001/04/27 09:12:33	1.3
+++ Completion/Base/Completer/_expand	2001/04/30 11:06:20
@@ -34,7 +34,7 @@
 zstyle -T ":completion:${curcontext}:" suffix &&
   [[ "$word" = (\~*/|*\$(|[=~#^+])[a-zA-Z0-9_\[\]]##[^a-zA-Z0-9_\[\]]|*\$\{*\}?) &&
-     "${(e)word}" != *[][^~*?\<\>\{\}\|]* ]] &&
+     "${(e)word}" != *[][^*?\(\)\<\>\{\}\|]* ]] &&
   return 1
 zstyle -t ":completion:${curcontext}:" accept-exact ||

Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx

Messages sorted by: Reverse Date, Date, Thread, Author