From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6682 invoked from network); 19 Apr 2001 03:57:59 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 19 Apr 2001 03:57:59 -0000 Received: (qmail 10022 invoked by alias); 19 Apr 2001 03:57:52 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 14021 Received: (qmail 10007 invoked from network); 19 Apr 2001 03:57:51 -0000 From: "Bart Schaefer" Message-Id: <1010419035736.ZM9073@candle.brasslantern.com> Date: Thu, 19 Apr 2001 03:57:36 +0000 In-Reply-To: <200104180844.KAA08883@beta.informatik.hu-berlin.de> Comments: In reply to Sven Wischnowsky "Re: PATCH: Assorted parameter stuff" (Apr 18, 10:44am) References: <200104180844.KAA08883@beta.informatik.hu-berlin.de> X-Mailer: Z-Mail (5.0.0 30July97) To: zsh-workers@sunsite.dk Subject: Re: PATCH: Assorted parameter stuff MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Apr 18, 10:44am, Sven Wischnowsky wrote: } Subject: Re: PATCH: Assorted parameter stuff } } Bart Schaefer wrote: } } > One additional question: I think it'd be straightforward to make this } > be parsed as all one word: } > } > % echo $foo[(i)dom str] } > } > I.e. the space inside the [ ] could implicitly be quoted. } } Oh, that would be wonderful. I remember me fighting with that several } times (it can get pretty ugly with nested expansions and arrays). Well, it's not as straightforward as I thought -- the parse gets tangled up the with parsing of [[ ... ]], among other things -- and I just noticed that you can get the equivalent effect by surrounding the whole thing with braces: % foo='any random string' % echo ${foo[(i)dom str]} 8 So I think I'm going to leave it at 14008+14016 unless somebody comes up with other bugs to zap. -- 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