From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14628 invoked from network); 24 Feb 1997 20:22:24 -0000 Received: from euclid.skiles.gatech.edu (list@130.207.146.50) by coral.primenet.com.au with SMTP; 24 Feb 1997 20:22:24 -0000 Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id PAA11620; Mon, 24 Feb 1997 15:16:57 -0500 (EST) Resent-Date: Mon, 24 Feb 1997 15:10:01 -0500 (EST) From: Zefram Message-Id: <21287.199702242011@stone.dcs.warwick.ac.uk> Subject: Re: grouping in patterns in extended compctl To: Harres@UWyo.Edu (John Harres) Date: Mon, 24 Feb 1997 20:11:33 +0000 (GMT) Cc: zsh-users@math.gatech.edu In-Reply-To: <199702241633.JAA02090@horseman.uwyo.edu> from "John Harres" at Feb 24, 97 09:33:09 am X-Loop: zefram@dcs.warwick.ac.uk X-Stardate: [-31]8934.20 X-Phase: The Moon is Waning Gibbous (95% of Full) X-US-Congress: Moronic fuckers X-Personality: INTJ Content-Type: text Resent-Message-ID: <"xtBB53.0.lm2.KMV4p"@euclid> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/710 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu John Harres wrote: > 'c[-2,add][-2,delete][-2,modify][-2,query] c[-1,volume] s[-] , s[-m_]' -k volparams -- sc > >Unfortunately, what need to do with the second pattern set is say: > >if two words ago was one of 'add delete modify, or query', and one word ago >was 'volume' and the current word starts with - or -m_, then match with any >of the volparams array. Unfortunately, the default precedence appears to and >the c[-1,volume] and s[-] before the or'ing of s[-] , s[-m_]. Suggestions? You could repeat the "c[-2,...] c[-1,volume]" part after the comma. >This could end up being one of the longest compctl's ever built! Have you looked at the gcc compctl in Misc/compctl-examples? > Which brings >up another question: what's the max length of one of these? How much memory do you have? -zefram