From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16065 invoked from network); 15 May 2000 10:43:42 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 15 May 2000 10:43:42 -0000 Received: (qmail 6647 invoked by alias); 15 May 2000 10:43:23 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 11367 Received: (qmail 6544 invoked from network); 15 May 2000 10:43:14 -0000 Date: Mon, 15 May 2000 12:43:03 +0200 (MET DST) Message-Id: <200005151043.MAA15438@beta.informatik.hu-berlin.de> From: Sven Wischnowsky To: zsh-workers@sunsite.auc.dk In-reply-to: Sven Wischnowsky's message of Mon, 15 May 2000 11:26:19 +0200 (MET DST) Subject: Re: PATCH: Re: Seg fault in matcher-list matching I wrote: > Bart Schaefer wrote: > > > I did this: > > > > zagzig[41] /u/s/l/z/z4/s/zsh > > ^cursor over the 4, press TAB > > > > The path this was intended to match was /usr/src/local/zsh/zsh-2.4/src/zsh. > > I had first tried TAB at the end of the line and gotten a feep, in case > > that matters. > > I couldn't get it to seg-fault, but there was something broken. Matching > of the suffix, for example, and that both in C and shell code. Small followup... let's try to do that as seldom as possible. Bye Sven Index: Completion/Core/_path_files =================================================================== RCS file: /cvsroot/zsh/zsh/Completion/Core/_path_files,v retrieving revision 1.12 diff -u -r1.12 _path_files --- Completion/Core/_path_files 2000/05/15 09:34:12 1.12 +++ Completion/Core/_path_files 2000/05/15 10:41:52 @@ -529,7 +529,7 @@ cpre="${cpre}${tpre%%/*}/" tpre="${tpre#*/}" elif [[ "$tsuf" = */* ]]; then - mid="$testpath" + [[ "$tsuf" != /* ]] && mid="$testpath" cpre="${cpre}${tpre}/" tpre="${tsuf#*/}" tsuf= -- Sven Wischnowsky wischnow@informatik.hu-berlin.de