Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: simple substitution?
- X-seq: zsh-users 14327
- From: spiralofhope <spiralofhope@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: simple substitution?
- Date: Thu, 27 Aug 2009 08:12:35 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:in-reply-to:references:x-mailer:mime-version :content-type:content-transfer-encoding; bh=KNKOsfwWNoAdBW2bdhUpcvmPJUUHAi2uV/vLCfFoZFs=; b=CBp++D4Im181DYoMUNcen9afToqr/ukZeLIZ5BHlgmmid0knV3mDq5dy0h7BBUzBn9 gg83FK9K9GFdhcmo3PcVmHFVmR5kl7VB1ACRUvfJY9T4YWVLG8Ij1EtUPmgAF+sGZc9W PMMpApz2e2lIJBEbitSldkfuivYGwHXwE/akw=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type:content-transfer-encoding; b=wk/XojgbPkpHVdv1XzjNsA/l5NkmaD9dZaLv4sY68msyZOOB3v39mQZY2QoNqa68tX Dsh1dYD2RKUfAAMmDIhznc5dJut0LgN/OAuTH18NeID1VHvpGN3oIQoYZ9VXpu8kYJ4P oFLVMdFaC8nDM/G/OjADCt2jMlT0sVZN7k6/k=
- In-reply-to: <chaz20090812120418.GA21006@xxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20090812133916.6ab5adcf.tartifola@xxxxxxxxx> <chaz20090812120418.GA21006@xxxxxxxxxxx>
On Wed, 12 Aug 2009 13:04:18 +0100
Stephane Chazelas <stephane_chazelas@xxxxxxxx> wrote:
> eval.
>
> eval "echo \${${FO}${O}}"
>
> or
>
> eval "echo \${$FO$O}"
>
> See also:
>
> echo ${(P)${:-$FO$O}}
>
> or
>
> echo ${(e)${:-\${$FO$O}}}
Is eval a good idea? Can it introduce backdoors into the script?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author