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

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".

-zefram



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