I have something in bash like
bash
myArray=(\'red\' \'orange\' \'green\')
And I would like to do something like
echo ${
In zsh you can do
xs=( foo bar qux ) echo ${xs[(ie)bar]}
see zshparam(1) subsection Subscript Flags