Committed revision 100569825E73343E900.
** Changed in: mksh
Status: Triaged => Fix Committed
** Changed in: mksh
Assignee: (unassigned) => Thorsten Glaser (mirabilos)
--
You received this bug notification because you are a member of mksh
Mailing List, which is subscribed to mksh.
Matching subscriptions: mkshlist-to-mksh-bugmail
https://bugs.launchpad.net/bugs/1533396
Title:
read -a causes arrays to be malformed
Status in mksh:
Fix Committed
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.
To manage notifications about this bug go to:
https://bugs.launchpad.net/mksh/+bug/1533396/+subscriptions