From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13068 invoked from network); 16 Apr 2001 17:30:15 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 16 Apr 2001 17:30:15 -0000 Received: (qmail 10900 invoked by alias); 16 Apr 2001 17:30:11 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 13994 Received: (qmail 10887 invoked from network); 16 Apr 2001 17:30:10 -0000 From: "Bart Schaefer" Message-Id: <1010416172924.ZM13214@candle.brasslantern.com> Date: Mon, 16 Apr 2001 17:29:24 +0000 In-Reply-To: <1010416160604.ZM12205@candle.brasslantern.com> Comments: In reply to "Bart Schaefer" "(Fwd) Re: requests" (Apr 16, 4:06pm) References: <20010414202410.A10021@dman.com> <1010416160604.ZM12205@candle.brasslantern.com> X-Mailer: Z-Mail (5.0.0 30July97) To: zsh-workers@sunsite.dk Subject: Re: requests MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Apr 16, 4:06pm, Bart Schaefer wrote: } Subject: (Fwd) Re: requests } } } 1. in ${param[(r)$anotherparam]} the result of $anotherparam } } is always treated as a pattern, it would be nice if one could use } } $~anotherparam for this. } } One can get the desired effect by using ${param[(r)${(q)anotherparam}]}, } but (another inconsistency) this works for arrays but fails for string } subscription on scalars. That's clearly a bug. I have a fix for that now, too. It failed only when the `*' was the last character in $anotherparam, because the code that checked for whether to append a `*' to the pattern failed to check that the next-to-last character might be a backslash. -- 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