read -a causes arrays to be malformed
Bug #1533396 reported by
Thorsten Glaser
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mksh |
Fix Released
|
Medium
|
Thorsten Glaser |
Bug Description
This was indirectly spotted by izabera:
{ IFS= read -arN1 tape[i]; let i++; IFS= read -arN1 tape[i]; } <<<xy; typeset -p tape
This outputs:
set -A tape
typeset -i tape[0]=120
typeset -i tape[0]=121
Obviously, we cannot have duplicate indicēs.
The trigger is trying to read into an array index, which we cannot do as we do not have nested arrays yet.
Changed in mksh: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Committed revision 100569825E73343 E900.