On Tue, 21 Jun 2011, Chet Ramey wrote:

   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.


Yep, thanks. Verified no segfault; only the error. Tested on 4.0, 4.1, and 4.2 in Fedora 12, 14, and rawhide respectively.

../C


Reply via email to