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.

{varname} for redirection does not work with arrays

2011-11-04 Thread unknown
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-unknown-linux-gnu' -DCONF_VENDOR='unknown' -DLOCALEDIR='/home/lester/bas