From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19299 invoked from network); 15 Jun 2000 10:27:45 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 15 Jun 2000 10:27:45 -0000 Received: (qmail 4818 invoked by alias); 15 Jun 2000 10:27:28 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 11926 Received: (qmail 4810 invoked from network); 15 Jun 2000 10:27:27 -0000 From: "Bart Schaefer" Message-Id: <1000615102222.ZM5037@candle.brasslantern.com> Date: Thu, 15 Jun 2000 10:22:22 +0000 In-Reply-To: <200006150920.LAA04751@beta.informatik.hu-berlin.de> Comments: In reply to Sven Wischnowsky "Re: _expand doesn't do brace expansion?" (Jun 15, 11:20am) References: <200006150920.LAA04751@beta.informatik.hu-berlin.de> X-Mailer: Z-Mail (5.0.0 30July97) To: Sven Wischnowsky , zsh-workers@sunsite.auc.dk Subject: Re: _expand doesn't do brace expansion? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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. zagzig[52] ls Functions/({Mi zagzig[52] ls Functions/{{Misc/<,TAB> zagzig[52] ls Functions/{{Misc, Completing file README.zftp Zftp/ Prompts/ CVS/ Makefile.in Zle/ Misc/ zagzig[52] ls Functions/{{Misc,P zagzig[52] ls Functions/{{Misc,Prompts/<},TAB> zagzig[52] ls Functions/{{Misc,Prompts}, Completing `file' or `corrections' (BEEP) } % a='a{x,y}b' } % echo ${(e)a} } a{x,y}b That is kinda grody. It ought to be possible to turn 'a{x,y}b' into 'a${^=:-x y}b' and then use ${(e)...} on that; but dang it's tough to match a curly brace inside a ${var/pat/rep} expression without causing a parse error. -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net