Re: {varname} for redirection does not work with arrays

2012-03-28 Thread Bash M'head
On Nov 5, 12:34 pm, Stephane CHAZELAS wrote: > 2011-11-2, 12:01(-06), unkn...@vmw-les.eng.vmware.com: > [...]> Description: > >    If {varname} is an assoc. array in a redirection the exec will fail > >    The [] should not be confused with pathname expansion just like ${}. > > > Repeat-By: > >  

Re: {varname} for redirection does not work with arrays

2011-11-05 Thread Stephane CHAZELAS
2011-11-2, 12:01(-06), unkn...@vmw-les.eng.vmware.com: [...] > Description: > If {varname} is an assoc. array in a redirection the exec will fail > The [] should not be confused with pathname expansion just like ${}. > > Repeat-By: > $ declare -A array > $ exec {array[key]}

Re: {varname} for redirection does not work with arrays

2011-11-04 Thread Dennis Williamson
You're missing a dollar sign.