Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: b1908adae4589e652a6284d45e693f29725f9070
Ticket: 218229ffffffffffffffffffffffffffffffffff
referencing array indices containing backslashes
User & Date: nobody on 2000-10-26 00:54:50
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 2662 Bug
    Version: 8.2
    SubmitDate: '1999-08-31'
    LastModified: '1999-09-01'
    Severity: SER
    Status: Closed
    Submitter: techsupp
    ChangedBy: hobbs
    OS: Windows 95
    Machine: X86
    FixedDate: '2000-10-25'
    ClosedDate: '1999-09-01'
    
    
    Name:
    keith lea
    
    ReproducibleScript:
    % set X(\\f) f
        f
        % array get X
        {\f} f
        % foreach i [array get X] {puts $X($i)}
        f
        can't read "X(f)": no such element in array
        % set {X(\f)}
        can't read "X()": no such element in array
        % set {X(\\f)}
        f
        %
    
    ObservedBehavior:
    backslash substitution seems to be performed on array indices
    
    
    
    This is a user error where [array names X] should be used
    instead of [array get X]. 
    -- 09/01/1999 hobbs
    
  4. foundin changed to: "obsolete: 8.2"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "69. Other"
  10. title changed to: "referencing array indices containing backslashes"
  11. type changed to: "Bug"