Re: Variable casts from string to array but silently fails in reverse

2014-01-31 Thread Jonathan Doull
Thanks - understandable although was confusing at the time and made for a nasty subtle scripting bug. Bash is not for the faint hearted. On 31 January 2014 19:45, Chet Ramey wrote: > On 1/31/14 10:39 AM, Jonathan Doull wrote: > > > Bash Version: 4.2 > > Patch Level: 25

Variable casts from string to array but silently fails in reverse

2014-01-31 Thread Jonathan Doull
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-pc-linux-gnu' -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE