read -a causes arrays to be malformed

Bug #1533396 reported by Thorsten Glaser
6
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.

Revision history for this message
Thorsten Glaser (mirabilos) wrote :

Committed revision 100569825E73343E900.

Changed in mksh:
assignee: nobody → Thorsten Glaser (mirabilos)
status: Triaged → Fix Committed
Changed in mksh:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.