bug-bash
[Top][All Lists]
Advanced

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

read into array Segfaults


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

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?

It's reproducible on all versions of bash-4 that support associative array declaration. And verified on Debian, Fedora, Gentoo...

../C




reply via email to

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