Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: a24bf49341534c07d44a3f70cea5835099be240e
Ticket: 3513146fffffffffffffffffffffffffffffffff
string index permits invalid charIndex
User & Date: blacksqr on 2012-03-30 08:54:19
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    % set x a
    a
    % set val [string index $x end]]
    a]
    
    Note the extra close bracket at the end of the last statement.  Instead of throwing an error for imbalanced brackets, the extra bracket is strangely passed through to the result.
    
    Tested on Tcl 8.5.8 and 8.6b2 (Ubuntu)
    
  4. foundin changed to: "obsolete: 8.6b2"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "blacksqr"
  10. subsystem changed to: "18. Commands M-Z"
  11. title changed to: "string index permits invalid charIndex"
  12. type changed to: "Bug"