From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19445 invoked from network); 15 Jun 2000 10:45:53 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 15 Jun 2000 10:45:53 -0000 Received: (qmail 6962 invoked by alias); 15 Jun 2000 10:45:46 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 11927 Received: (qmail 6937 invoked from network); 15 Jun 2000 10:45:37 -0000 Date: Thu, 15 Jun 2000 12:45:22 +0200 (MET DST) Message-Id: <200006151045.MAA06788@beta.informatik.hu-berlin.de> From: Sven Wischnowsky To: zsh-workers@sunsite.auc.dk In-reply-to: "Bart Schaefer"'s message of Thu, 15 Jun 2000 10:22:22 +0000 Subject: Re: _expand doesn't do brace expansion? Bart Schaefer wrote: > On Jun 15, 11:20am, Sven Wischnowsky wrote: > } Subject: Re: _expand doesn't do brace expansion? > } > } Oh, didn't everyone know that? > > _complete manages to complete inside braces; why does the code that > understands braces stop taking them apart when there's a closed pair? > AFAICT, no completion works at all once any close brace is in place, > even if that's within an outer set of braces, e.g. It simply gives up. With `a{b,c}' the completion code would have to generate the matches for `ab' and `ac', then built the intersection to get the suffixes (and prefixes if there's a suffix, i.e. the middle-strings) which are in both sets (in all n sets, actually). And that mey be combined with arbitrarily complicated match specs. Frightening. Or have I missed something? Bye Sven -- Sven Wischnowsky wischnow@informatik.hu-berlin.de