From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10661 invoked from network); 16 May 2000 10:49:12 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 16 May 2000 10:49:12 -0000 Received: (qmail 15497 invoked by alias); 16 May 2000 10:49:07 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 11404 Received: (qmail 15490 invoked from network); 16 May 2000 10:49:07 -0000 Date: Tue, 16 May 2000 12:48:54 +0200 (MET DST) Message-Id: <200005161048.MAA26740@beta.informatik.hu-berlin.de> From: Sven Wischnowsky To: zsh-workers@sunsite.auc.dk In-reply-to: Tanaka Akira's message of 16 May 2000 07:57:58 +0900 Subject: Re: PATCH: Re: Seg fault in matcher-list matching Tanaka Akira wrote: > In article <200005150926.LAA17371@beta.informatik.hu-berlin.de>, > Sven Wischnowsky writes: > > > 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. > > I found another problem about matching control. > > Z(4):akr@serein% Src/zsh -f > serein% bindkey -e; autoload -U compinit; compinit -D; compdef _tst tst > serein% _tst () { compadd -M 'r:|[:.]=* r:|=*' a.b:0 c.d:1 } > serein% tst : > > This inserts nothing now. > > But 3.1.7-pre-2 inserts `.' as follows (and place the cursor on the > `.'). > > % tst .: The new behaviour is the correct one: with `*', the `*' must not match anchors and that's what it does now (it would have to match the `.', of course). With `**' you get the old behaviour, which is correct, too. ;-) Bye Sven -- Sven Wischnowsky wischnow@informatik.hu-berlin.de