Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 8274f96be554107ecde3c7abf653bc96def0b42d
Ticket: 489537ffffffffffffffffffffffffffffffffff
string rep of list: should quote '#'
User & Date: dgp on 2003-07-23 00:00:33
Changes

  1. icomment:
    Logged In: YES 
    user_id=80530
    
    
    Because [eval] has pure-list optimizations,
    this bug now appears as a shimmering
    inconsistency.  Consider this demo script
    
    # FILE: demo.tcl
    set cmdName [lindex $argv 0]
    proc $cmdName {} {puts Success!}
    set command [list $cmdName]
    puts "Eval \[$command]" ;# comment this out
    eval $command
    
    Correct behavior is for the script
    to write Success! to stdout.  As written
    above, this fails for an argument that
    begins with the # character.   However,
    if you comment out the indicated [puts],
    then we avoid string-rep generation,
    and the script works correctly for all
    arguments.
    
    Seems we should be able to correct
    a shimmering inconsistency without
    a TIP.  Anyone relying on the 
    buggy behavior should have been
    caught by the pure-list optimizations
    in eval by now.
    
    
    
  2. login: "dgp"
  3. mimetype: "text/plain"
  4. username: "dgp"