Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: simple substitution?




On 12.08.2009, at 13:39, tartifola@xxxxxxxxx wrote:


Hi,
I'm trying to understand expansion end substitution and I'm lost in
what should be a simple substitution. Here my example

foo=4
echo ${foo}
4
FO=fo
O=o
echo \${${FO}${O}}
${foo}

while I was expecting '4'. What am I missing?

eval echo \${${FO}${O}}

But I guess this is not what you expected.



Messages sorted by: Reverse Date, Date, Thread, Author