> I did a stupid thing. Tried to read into an array--which is indexed--but
> the variable is already an associative array.
>
> declare -A foo
> read -a foo <<<bar
>
> The above should error instead of Segfault, yes?
Yes. It certainly shouldn't crash the shell. Try the attached patch and
let me know that it works for you. Thanks for the report.
Chet
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/