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 > > Release Status: rele

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

2014-01-31 Thread Chet Ramey
On 1/31/14 10:39 AM, Jonathan Doull wrote: > Bash Version: 4.2 > Patch Level: 25 > Release Status: release > > Description: > > Variables can be automatically cast from string to array. > However when cast from array to string, the cast silently fails. Not quite. The bash man page says: "Refe