From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7158 invoked from network); 3 Mar 1999 09:32:03 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 3 Mar 1999 09:32:03 -0000 Received: (qmail 15534 invoked by alias); 3 Mar 1999 09:31:49 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 5619 Received: (qmail 15527 invoked from network); 3 Mar 1999 09:31:48 -0000 Date: Wed, 3 Mar 1999 10:31:05 +0100 (MET) Message-Id: <199903030931.KAA20816@beta.informatik.hu-berlin.de> From: Sven Wischnowsky To: zsh-workers@sunsite.auc.dk In-reply-to: "Andrej Borsenkow"'s message of Wed, 3 Mar 1999 12:05:22 +0300 Subject: Re: Count of last matches (was: RE: Reading completion manual) Andrej Borsenkow wrote: > What about following: add new item to compstate, say, last_nmatches, that > hold count of matches added by the *last* used compgen, compadd, compcall. > That can be used to test if we got something, and probably may be useful for > other tasks as well. And definitely better > > if [[ $compstate[last_nmatches] -gt 0 ]] Easy to add. Some more feedback? > than current > > save nmatches > call completion > compare You don't like shell code, do you? ;-) Bye Sven -- Sven Wischnowsky wischnow@informatik.hu-berlin.de