From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3683 invoked from network); 16 Oct 1999 11:47:09 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 16 Oct 1999 11:47:09 -0000 Received: (qmail 23299 invoked by alias); 16 Oct 1999 11:47:00 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8298 Received: (qmail 23280 invoked from network); 16 Oct 1999 11:47:00 -0000 X-Envelope-Sender-Is: Andrej.Borsenkow@mow.siemens.ru (at relayer thoth.mch.sni.de) From: "Andrej Borsenkow" To: "Sven Wischnowsky" , Subject: RE: PATCH: Re: _match still does not work in _path_files Date: Sat, 16 Oct 1999 15:46:56 +0400 Message-ID: <000001bf17cc$2604a8b0$21c9ca95@mow.siemens.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: <199910151413.QAA18584@beta.informatik.hu-berlin.de> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 > > ... of the code that makes this happen. `_path_files' adds the > matching together with possible suffixes to be able to show the > longest possible unambiguous string to the user. This means that there > are different matches that would show the same string in the line. To > avoid showing the same string more than once in a list, the completion > code hides duplicates. And lists with hidden matches can not be > completed with menu-selection. > Ahem ... but why is menu completion started for the last path component in the first place? I expect it to be started for {functions,functions.old} - the first ambiguous part. And I bet it was - once. I tested it in zsh-3.1.6 and there _match works :-) and look what happens: itsrm2% l /t/s/z/f*/_ itsrm2% l /tools/share/zsh/functions/_ functions/ functions.old/ press TAB once more and selection is started for the first ambiguous component: itsrm2% l /tools/share/zsh/functions/_ functions/ functions.old/ (after TAB) itsrm2% l /tools/share/zsh/functions.old/_ functions/ functions.old/ etc. I (from a user's point of view) fail to see, how /t/s/z/f/_ differs from /t/s/z/f*/_ - it has exactly and precisely the same meaning. /andrej