From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27708 invoked from network); 30 Apr 2001 11:08:35 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 30 Apr 2001 11:08:35 -0000 Received: (qmail 23235 invoked by alias); 30 Apr 2001 11:08:27 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 14160 Received: (qmail 23222 invoked from network); 30 Apr 2001 11:08:26 -0000 From: Sven Wischnowsky Date: Mon, 30 Apr 2001 13:08:18 +0200 (MET DST) Message-Id: <200104301108.NAA02465@beta.informatik.hu-berlin.de> To: zsh-workers@sunsite.dk Subject: PATCH: Re: Use of named directories in completions broken. In-Reply-To: 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. Bye Sven 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@informatik.hu-berlin.de