Description: |
Unexpected errors with (at least) lindex and lassign commands acting
on a list that has a space before a closing quote:
> lindex {x="a" y="a " z="a"}
list element in quotes followed by "a"" instead of space
> lassign {x="a" y="a " z="a"} v
list element in quotes followed by "a"" instead of space
In my view, either the quote before z is a separate list element after
'y="a' and before 'z="a"', or it matches the previous one after 'y='
and in both cases it will not match the next one and leave 'a"' as
a spurious continuation of a list element...
This must really be bug: compare with
> lindex {x="a" y=" a" z="a"} 0
x="a"
> lindex {x="a" y=" a" z="a"} 1
y="
> lindex {x="a" y=" a" z="a"} 2
a"
> lindex {x="a" y=" a" z="a"} 3
z="a"
Thanks in advance for any help in coping with this,
Miguel Filgueiras
|