From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 612 invoked from network); 21 Jan 2002 17:13:08 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 21 Jan 2002 17:13:08 -0000 Received: (qmail 21104 invoked by alias); 21 Jan 2002 17:13:00 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 16473 Received: (qmail 21093 invoked from network); 21 Jan 2002 17:12:59 -0000 From: "Bart Schaefer" Message-Id: <1020121171254.ZM27468@candle.brasslantern.com> Date: Mon, 21 Jan 2002 17:12:53 +0000 In-Reply-To: <20020121145154.GA21761@fysh.org> Comments: In reply to Zefram "Re: Bad expansion" (Jan 21, 2:51pm) References: <20020121145154.GA21761@fysh.org> X-Mailer: Z-Mail (5.0.0 30July97) To: DervishD Subject: Re: Bad expansion Cc: Zsh MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Jan 21, 2:51pm, Zefram wrote: } Subject: Re: Bad expansion } } DervishD wrote: } > # Bad substitution } > echo ${${testing[1]}_VALUE} } } echo ${(e):-\$${testing[1]}_VALUE} } } The :-\ is a smiley that means "maybe there ought to be a neater way". There's also echo ${(P)${:-${testing[1]}_VALUE}} but I don't know whether that can be considered "neater." -- 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