[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: read into array Segfaults

From: Curtis Doty
Subject: Re: read into array Segfaults
Date: Tue, 21 Jun 2011 08:34:24 -0700 (PDT)
User-agent: Alpine 2.00 (LFD 1167 2008-08-23)

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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]