Tcl Source Code

Ticket Change Details
Login
Overview

Artifact ID: 067e9167fdf3ea55c1498917db9cda09a43bee33
Ticket: 70176515d1019f8f11e18ff0cc9c7454b94c4dce
Errors in list commands when list has a space before a closing quote
User & Date: migfilg 2014-01-28 16:59:04
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    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
    
  5. foundin changed to: "8.5.11"
  6. is_private changed to: "0"
  7. login: "migfilg"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "2839a1afd9f47e651a6e7f076ad9fc08c5700794"
  10. resolution changed to: "None"
  11. severity changed to: "Important"
  12. status changed to: "Open"
  13. submitter changed to: "migfilg"
  14. subsystem changed to: "14. List Object"
  15. title changed to:
    Errors in list commands when list has a space before a closing quote
    
  16. type changed to: "Bug"