Re: eval complains about array syntax valid in bash-3.0.16
From:
Chet Ramey
Subject:
Re: eval complains about array syntax valid in bash-3.0.16
Date:
Mon, 13 Feb 2006 09:47:06 -0500
> Machine Type: sparc-sun-solaris2.8
>
> Bash Version: 3.1
> Patch Level: 0
> Release Status: release
>
> Description:
> Assigning arrays using
> testvar=( $(echo A) $(echo B) )
> is accepted in bash-3.1.0. However, using the
> same in an eval-construct
> eval testvar=( $(echo A) $(echo B) )
> is rejected:
Apply the patches to bash-3.1. This was patch 1.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )
Live Strong.
Chet Ramey, ITS, CWRU chet@case.edu http://tiswww.tis.case.edu/~chet/