Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 69887020bc9ca232bf6279074b27c48f6c5ff0ca
Ticket: de7f92b65af279c0495d648ae871281c026ca955
variable substitution causes crashes
User & Date: sebres on 2016-07-15 10:24:59
Changes

  1. closedate changed to: "2457584.93401784"
  2. closer changed to: "sebres"
  3. icomment:
    > but an error is expected to be given rather than crash.
    
    That is almost impossible, because it is expected behavior - how tcl substitution works.
    
    See example bellow:
    
      % puts $[list this is a command execution]$
      $this is a command execution$
    
      % puts -[list this is a command execution]-
      -this is a command execution-
    
    In this case "$" is just a dollar-character, exactly so as by second example "-" is minus character.
    
    BTW if that will be "fixed", thousands tcl codes over the world would be no longer functional. Then the backwards compatibility always has a priority here!
    
    The only exception here was a sequence "{*}" (does expanding of arguments), but it was possible only why such combination was anyway not allowed in previous versions because of chars after closed brace (so indirect it was backwards compatible):
    
      % puts {*}[list stdout test]
      test
    
    Please take a look into documentation about tcl substitution, before post a new "bugs" here...
    Close now, because won't be fixed.
    
  4. login: "sebres"
  5. mimetype: "text/plain"
  6. resolution changed to: "Rejected"
  7. status changed to: "Closed"