From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23808 invoked from network); 11 Oct 1999 14:59:14 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 11 Oct 1999 14:59:14 -0000 Received: (qmail 19504 invoked by alias); 11 Oct 1999 14:59:05 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8209 Received: (qmail 19495 invoked from network); 11 Oct 1999 14:59:04 -0000 X-Envelope-Sender-Is: Andrej.Borsenkow@mow.siemens.ru (at relayer david.siemens.de) From: "Andrej Borsenkow" To: "Sven Wischnowsky" , Subject: Prblems with _match and exact matches (was: RE: BUG: RE: What happened to _path_files?) Date: Mon, 11 Oct 1999 18:58:58 +0400 Message-ID: <000301bf13f9$252b6a90$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: <000201bf13f0$c8991e60$21c9ca95@mow.siemens.ru> X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Importance: Normal > > With my settings it is even worse: > > bor@itsrm2:~%> l /t/s/z/f/_ > bor@itsrm2:~%> l /tools/share/zsh/functions/_ > functions/ functions.old/ > Just to make sure - the actual bug is, that cursor is moved to the end of word and not to the end of ambiguous part (path_cursor). I just tried with zsh-3.1.6-pws-3 - and there it is the same ... so, may be, it was there for a long time. It happens only if one match is a prefix of another (i.e. one match is exact) and there is no exact match for suffix. With 3.1.6-pws-3 it does not happen with _match: itsrm2% l /t/s/z/f*/_ itsrm2% l /tools/share/zsh/functions/_ functions/ functions.old/ but with 3.1.6-pws-6 + all current patches: or@itsrm2:~%> l /t/s/z/f*/_ just beeps. If suffix is exact, that works as expected: bor@itsrm2:~/test%> l ~/test/(ls|lss) /home/bor/test/ls: a acc /home/bor/test/lss: a acc bor@itsrm2:~/test%> l /h/b/t/l/a bor@itsrm2:~/test%> l /home/bor/test/ls/a ls/ lss/ It still works even in this case: bor@itsrm2:~/test%> l ~/test/(ls|lss) /home/bor/test/ls: ab acc /home/bor/test/lss: a acc But not in this bor@itsrm2:~/test%> l ~/test/(ls|lss) /home/bor/test/ls: ab acc /home/bor/test/lss: ab acc My setings in ~/.zshrc are: ompconf completer=_oldlist:_complete:_match compconf match_original=yes compconf match_insert=unambig compconf path_cursor=yes compconf oldlist_list=_match LS_COLORS= SELECTMIN=0 setopt cdablevars setopt extendedhistory setopt extendedglob setopt histexpiredupsfirst setopt histignorealldups setopt histignoredups setopt histreduceblanks setopt histsavenodups setopt ignoreeof setopt nobanghist setopt nolistambiguous setopt nolistbeep /andrej