On 5/22/16 7:14 PM, Grisha Levit wrote:
> The following should probably work:
> 
> |$ declare -n ref=var ref+=[@] bash: declare: [@]: invalid variable name for
> name reference |
> 
> But the following should not:
> 
> |$ declare -n ref=re ref+=f $ declare -p ref declare -n ref="ref" |
> 
> The latter causes a segfault for export/readonly.

Thanks for the report.  Both of these cases should be caught.

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    c...@case.edu    http://cnswww.cns.cwru.edu/~chet/

Reply via email to