From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1985 invoked from network); 21 Jan 2002 19:28:18 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 21 Jan 2002 19:28:18 -0000 Received: (qmail 21635 invoked by alias); 21 Jan 2002 19:28:10 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 16475 Received: (qmail 21622 invoked from network); 21 Jan 2002 19:28:09 -0000 To: raul@viadomus.com, zefram@fysh.org Subject: Re: Bad expansion Cc: zsh-workers@sunsite.dk Message-Id: Date: Mon, 21 Jan 2002 20:40:43 +0100 From: DervishD Reply-To: DervishD Sender: DervishD X-Mailer: DervishD TWiSTiNG Mailer Hello Zefram :)) >> # 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". Are you joking? XDD It works, but, AFAIK, this (apart from the obvious smiley) means: "Expand identifier, and, if it is not defined or missing (which is true), expand the other thing, that is, \$${testing[1]}_VALUE" But, why? I mean, maybe there ought to be a neater way ;))) Really, I'm not an expert about parameter expansion. Just the simple fact that you have provided me a solution is magic for me. Thanks a lot Zefram :)) And nice smile-like solution ;))))) Raśl